Can I get original value of PyErr? #2378
-
I just define a
and pass its instance into How can I get the original |
Beta Was this translation helpful? Give feedback.
Answered by
birkenfeld
May 16, 2022
Replies: 1 comment 3 replies
-
Your IoError is not an exception. The value is a standard Python IOError, but you can get at the "contents" with (in Python) |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
bachue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your IoError is not an exception. The value is a standard Python IOError, but you can get at the "contents" with (in Python)
err.args[0]
.