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
File "[...]\weasyprint\svg\defs.py", line 30, in use
tree = svg.tree.get_child(parsed_url.fragment).copy()
AttributeError: 'NoneType' object has no attribute 'copy'
Rendering a SVG that
use
s non-existing elements results in a crash.This has been a problem in all v53 betas, including current
master
. The cairo-based version simply ignored thoseuse
statements.There are various potentially trivial fixes, let me know if you'd prefer a PR over fixing this yourself @liZe :)
Example SVG:
Short backtrace:
WeasyPrint/weasyprint/svg/defs.py
Line 30 in 56910a8
The text was updated successfully, but these errors were encountered: