ID EN
Built-in Exceptions

OSError

Python 3.11

This exception is raised when a system function returns a system-related error, including I/O failures such as “file not found” or “disk full” (not for illegal argument types or other incidental errors).

Syntax

PYTHON
exception OSError([arg])

See Also

None args OSError OS exceptions errno OSError errno errno