Derived from the tryceratops linter.
Fix is always available.
What it does#
Checks for needless exception names in
Why is this bad?#
It's redundant to specify the exception name in a
raise statement if the
exception is being re-raised.
This rule's fix is marked as unsafe, as it doesn't properly handle bound
exceptions that are shadowed between the