Skip to content

New check which find duplicate except clauses #254

@kasium

Description

@kasium

flake8-bugbear already find duplicate exeptions in the same tuple, but across different except's this is not done

Examples:

try:
    pass
except ValueError:
    pass
except ValueError:
    pass
try:
    pass
except (ValueError, TypeError):
    pass
except (ValueError, UnicodeError):
    pass

I'm happy tp contribute this check 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions