[issue39673] TimeoutError
Eric V. Smith
report at bugs.python.org
Tue Feb 18 04:56:10 EST 2020
Eric V. Smith <eric at trueblade.com> added the comment:
I don't see why it would. You're raising OSError, which is not a subclass of TimeoutError, so the TimeoutError code is not executing. You don't say, but I assume this is what you think should happen.
The exception handling machinery does not look inside a raised exception to try to assign meaning to the values, so it doesn't know what errno=62 means. Nor should it: it's only based on the class of the exception, not its attributes.
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39673>
_______________________________________
More information about the Python-bugs-list
mailing list