-
Notifications
You must be signed in to change notification settings - Fork 52
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
Unexpected behaviour with ElementTree.ParseError #63
Comments
This is an unforeseen side-effect of module reloading code. The exception classes look to be the same, but they are actually different classes.
Looking into a fix now... |
tiran
added a commit
that referenced
this issue
Mar 8, 2021
The ``defusedxml.ElementTree.ParseError`` exception is now the same class object as ``xml.etree.ElementTree.ParseError`` again. The regression was introduced by new patching code as part of PR #60. See: #60 Fixes: #63 Signed-off-by: Christian Heimes <[email protected]>
tiran
added a commit
that referenced
this issue
Mar 8, 2021
The ``defusedxml.ElementTree.ParseError`` exception is now the same class object as ``xml.etree.ElementTree.ParseError`` again. The regression was introduced by new patching code as part of PR #60. See: #60 Fixes: #63 Signed-off-by: Christian Heimes <[email protected]>
tiran
added a commit
that referenced
this issue
Mar 8, 2021
The ``defusedxml.ElementTree.ParseError`` exception is now the same class object as ``xml.etree.ElementTree.ParseError`` again. The regression was introduced by new patching code as part of PR #60. See: #60 Fixes: #63 Signed-off-by: Christian Heimes <[email protected]>
tiran
added a commit
that referenced
this issue
Mar 8, 2021
The ``defusedxml.ElementTree.ParseError`` exception is now the same class object as ``xml.etree.ElementTree.ParseError`` again. The regression was introduced by new patching code as part of PR #60. See: #60 Fixes: #63 Signed-off-by: Christian Heimes <[email protected]>
tiran
added a commit
that referenced
this issue
Mar 8, 2021
The ``defusedxml.ElementTree.ParseError`` exception is now the same class object as ``xml.etree.ElementTree.ParseError`` again. The regression was introduced by new patching code as part of PR #60. See: #60 Fixes: #63 Signed-off-by: Christian Heimes <[email protected]>
Fixed in release 0.7.1. Thanks for the report! |
Merci ! |
This was referenced Mar 9, 2021
Merged
This was referenced Mar 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
No sure if it is a bug or feature, but this is certainly a regression in 0.7.0. To reproduce:
which outputs:
Unsurprisingly, it can be bisected to:
Is this a bug or should we do this in a different manner? Regardless, this is very confusing.
Thanks.
The text was updated successfully, but these errors were encountered: