Skip to content

Exception.add_note #93

@bealdav

Description

@bealdav

Hi all,

I've experimented this

https://daniel.feldroy.com/posts/til-2025-05-exception-add_note

It works nicely

I ask myself if it couldn't be added conditionnaly there according to python version (since 3.11) to have better raise output at the end of the traceback

https://github.com/acsone/git-aggregator/blob/master/git_aggregator/repo.py#L267

Example here

https://github.com/pydantic/pydantic/blob/d5684659df98d55678a450690000346dd326280b/pydantic/_internal/_typing_extra.py#L465

What do you think ?

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