pylint-errors

W0702 (bare-except)

:x: Problematic code:

try:
    1 / 0
except:
    pass

:heavy_check_mark: Correct code:

try:
    1 / 0
except ZeroDivisionError:
    pass

Rationale:

Used when an except clause doesn’t specify exceptions type to catch.