Skip to content

Subclass exceptions from BaseException #96

@LilyFirefly

Description

@LilyFirefly

_MissingRequiredTransaction, _UnexpectedOpenTransaction and _UnexpectedDanglingTransaction are all designed to not be caught. But they are subclasses of Exception, which means that an except Exception: catchall block will catch and potentially swallow them. Using BaseException as the parent class instead will avoid this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions