You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to be able to handle cases where images were not found during write_pdf.
I can see a message logged: Failed to load image at ...: URLError: <urlopen error [Errno 2] No such file or directory: ...
But there's no way for me to catch this when it happens and handle it accordingly.
This was discussed back in #250 but it seems the preference then was to allow image load failures to fail silently and continue rendering the PDF without them.
The text was updated successfully, but these errors were encountered:
If you want to raise errors when 404 errors are found, the best solution is probably to use a URL fetcher. You’ll then be able to do what you want, according to the result of your HTTP request.
I need to be able to handle cases where images were not found during
write_pdf
.I can see a message logged:
Failed to load image at ...: URLError: <urlopen error [Errno 2] No such file or directory: ...
But there's no way for me to catch this when it happens and handle it accordingly.
This was discussed back in #250 but it seems the preference then was to allow image load failures to fail silently and continue rendering the PDF without them.
The text was updated successfully, but these errors were encountered: