Christian Heimes <[email protected]> added the comment:
PyErr_SetString(PyErr_TimeoutError, "msg") and raise TimeoutError("msg") do not
set any additional exception attributes. errno, strerror, filename, and
filename2 are None:
>>> try:
... raise TimeoutError("msg")
... except Exception as e:
... err = e
...
>>> err
TimeoutError('msg')
>>> (err.errno, err.filename, err.filename2, err.strerror)
(None, None, None, None)
Is that a problem?
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue42413>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com