pylint-errors

W0705 (duplicate-except)

:x: Problematic code:

try:
    1 / 0
except ZeroDivisionError:
    pass
except ZeroDivisionError:
    pass

:heavy_check_mark: Correct code:

try:
    1 / 0
except ZeroDivisionError:
    pass

Rationale:

Used when an except catches a type that was already caught by a previous handler.