Skip to content

Consider extending suppressible-exception (SIM105) to multi-line try blocks #8593

@DetachHead

Description

@DetachHead
try: # error
    ...
except Exception:
    pass

try: # no error
    ...
    ...
except Exception:
    pass

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-decisionAwaiting a decision from a maintainerruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions