This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author YoSTEALTH
Recipients YoSTEALTH
Date 2020-02-18.09:51:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582019519.42.0.474248510986.issue39673@roundup.psfhosted.org>
In-reply-to
Content
import os


try:
    no = -62
    raise OSError(-no, os.strerror(-no))
except TimeoutError:
    print('Success')
except OSError as e:
    print('Failed:', e)
    # Failed: [Errno 62] Timer expired


Shouldn't `TimeoutError` catch this error?
History
Date User Action Args
2020-02-18 09:51:59YoSTEALTHsetrecipients: + YoSTEALTH
2020-02-18 09:51:59YoSTEALTHsetmessageid: <1582019519.42.0.474248510986.issue39673@roundup.psfhosted.org>
2020-02-18 09:51:59YoSTEALTHlinkissue39673 messages
2020-02-18 09:51:59YoSTEALTHcreate