◐ Shell
clean mode source ↗

Message 335032 - Python tracker

(also, OSError will automatically convert to more specific subclasses for some errnos, see PEP 3151:

>>> raise OSError(errno.ENOENT, "foobar")                                                                                                                              
Traceback (most recent call last):
  File "<ipython-input-3-e08f9c9a179c>", line 1, in <module>
    raise OSError(errno.ENOENT, "foobar")
FileNotFoundError: [Errno 2] foobar

)