Handle exceptions better
This commit is contained in:
parent
465eeb0a1d
commit
b3c54c7abb
1 changed files with 1 additions and 2 deletions
|
@ -62,8 +62,7 @@ for filename in os.listdir("."):
|
|||
pdf = weasyprint.HTML(link).write_pdf()
|
||||
open(name, 'wb').write(pdf)
|
||||
except:
|
||||
# Ignore exceptions
|
||||
# Probably not a good idea
|
||||
print("Error when printing")
|
||||
pass
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue