Derived from the pyupgrade linter.
Fix is always available.
What it does#
Checks for uses of exceptions that alias
Why is this bad?#
OSError is the builtin error type used for exceptions that relate to the
In Python 3.3, a variety of other exceptions, like
OSError. These aliases remain in place for compatibility with
older versions of Python, but may be removed in future versions.
OSError directly, as it is more idiomatic and future-proof.