Derived from the pycodestyle linter.
What it does#
Checks for bare
except catches in
Why is this bad?#
BaseException which includes
Exception, and others. Catching
BaseException can make it hard to interrupt the program (e.g., with
Ctrl-C) and can disguise other problems.
If you actually need to catch an unknown error, use
Exception which will
catch regular program errors but not important system exceptions.