Handle exceptions better

This commit is contained in:
Anthony Wang 2020-12-13 21:29:11 -06:00
parent 465eeb0a1d
commit b3c54c7abb
Signed by: a
GPG key ID: 6FD3502572299774

View file

@ -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