Skip to content

Add lint error for _any_ except block that might raise #262

@Zac-HD

Description

@Zac-HD

c.f. python-trio/trio#455 (comment) - this would be similar to ASYNC102 but I think ideally a separate rule so that people who wish to disable this (if lost exceptions aren't a big deal for them) don't reintroduce lost cancellations.

We should probably also do something similar for __aexit__ methods, although this gets increasingly awkward for @asynccontextmanager functions and so that should probably be a further separate rule.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions