Skip to content

Use Exception.add_note instead of re-raise #30

Open
@mscheltienne

Description

@mscheltienne

Requires Python 3.11 and above.

try:
   ...
except Exception as error:
    error. add_note("Custom message")
    raise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions