-
-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unignoreable 404 Error for non existing images in IMG tag #250
Comments
Catching Exceptions and adding null checks up the tree works just fine. Patch is comming |
A test case to reproduce the issue would be good too. Thanks! |
Very Simple
|
I can’t reproduce this in WeasyPrint master. This test case produces a warning:
… but no exception, and What’s strange in the traceback you give above is that WeasyPrint is apparently trying to write a PDF attachment, while an image alone should not be creating an attachment in the first place. |
Yes you are right and this is also the difference:
i forgot that there is a link sorry for my inacurate example |
The |
Version 0.25 ------------ Released on 2015-12-17. New features: * Support the 'q' unit. Bug fixes: * `#285: <https://github.com/Kozea/WeasyPrint/issues/285>`_: Fix a crash happening when splitting lines. * `#284: <https://github.com/Kozea/WeasyPrint/issues/284>`_: Escape parenthesis in PDF links. * `#280: <https://github.com/Kozea/WeasyPrint/pull/280>`_: Replace utf8 with utf-8 for gettext/django compatibility. * `#269: <https://github.com/Kozea/WeasyPrint/pull/269>`_: Add support for use when frozen. * `#250: <https://github.com/Kozea/WeasyPrint/issues/250>`_: Don't crash when attachments are not available.
Hello,
i get an exception that a image has not been found. In my opinion it should be possible to render the pdf even if an image could not be loaded, e.g. by a parameter.
Version: python-weasyprint 0.23
Best regards
Florijan
The text was updated successfully, but these errors were encountered: