Pattern: Overlapping exception
Issue: -
Used when exceptions in handler overlap or are identical.
Example of incorrect code:
class SomeException(Exception):
pass
try:
pass
except (SomeException, SomeException):
pass
Example of correct code:
class SomeException(Exception):
pass
try:
pass
except (SomeException):
pass