-
Notifications
You must be signed in to change notification settings - Fork 47
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
prepare
raises an exception when serializing the new document in PRONOM 89 (Python 2)
#104
Milestone
Comments
This is possibly related to #83, but doesn't go through that codepath. |
I converted this to use lxml for debugging, and it turns out lxml produces a better traceback here:
The explicit |
mistydemeo
added a commit
to mistydemeo/fido
that referenced
this issue
Mar 12, 2017
These were presumably meant to avoid this type of issue, but instead caused ElementTree to fail with a difficult-to-diagnose traceback. This occurred if any strings being encoded were Unicode strings containing non-ASCII characters, such as smart quotes. Fixes openpreserve#104.
Hwesta
pushed a commit
to Hwesta/fido
that referenced
this issue
Mar 24, 2017
These were presumably meant to avoid this type of issue, but instead caused ElementTree to fail with a difficult-to-diagnose traceback. This occurred if any strings being encoded were Unicode strings containing non-ASCII characters, such as smart quotes. Fixes openpreserve#104.
jhsimpson
pushed a commit
that referenced
this issue
Jun 16, 2017
These were presumably meant to avoid this type of issue, but instead caused ElementTree to fail with a difficult-to-diagnose traceback. This occurred if any strings being encoded were Unicode strings containing non-ASCII characters, such as smart quotes. Fixes #104.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to update to PRONOM 89, I encountered an exception being raised by the ElementTree serializer when trying to write Fido's reformatted XML documents. In the original context this happens when we serialize a single large XML document. To isolate the bug I adapted the script to write out each individual converted PRONOM record, and confirmed that
Sample traceback:
The text was updated successfully, but these errors were encountered: