Skip to content

Bad duplicate-except #2

@jucacrispim

Description

@jucacrispim

When handling different types of DoesNotExist we get a false duplicate-except

try:
   do_something()
except Doc.DoesNotExist:
    handleDoc()
except OtherDoc.DoesNotExist:  # here is the bad duplicate-except
    handleOtherDoc()

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions