Closed oskay closed 1 year ago
I can't seem to reproduce this issue at present; may need a new demonstration file to test it on.
Hasn't come up again in 6 months; closing for now. If you do come across this issue and can reproduce it, please comment here or open a new issue about it.
This appears to be a namespace issue, similar to that seen at https://github.com/inkstitch/inkstitch/issues/772
The likely direct cause is an AI "Save for web" export: https://phabricator.wikimedia.org/T144827
Proper behavior here might be to catch any errors importing the document and report the error to the user, rather than causing a traceback. The error human-readable error "This SVG file contains an illegal namespace." from the second link seems close to what we might use.
Another approach would be to ignore that namespace if possible. See: https://localcoder.org/python-lxml-ignore-xml-declaration-errors