New submission from YoSTEALTH <rit...@stealthcentral.com>:

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?

----------
messages: 362187
nosy: YoSTEALTH
priority: normal
severity: normal
status: open
title: TimeoutError
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39673>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to