Derived from the Pylint linter.
What it does#
except clauses that attempt to catch multiple
exceptions with a binary operation (
Why is this bad?#
A binary operation will not catch multiple exceptions. Instead, the binary
operation will be evaluated first, and the result of that operation will
be caught (for an
or operation, this is typically the first exception in
the list). This is almost never the desired behavior.