Derived from the tryceratops linter.
What it does#
Checks for code that raises
Why is this bad?#
Handling such exceptions requires the use of
except Exception, which
captures any raised exception, including failed assertions,
division by zero, and more.
Prefer to raise your own exception, or a more specific built-in exception, so that you can avoid over-capturing exceptions that you don't intend to handle.