Skip to content

add option to traceback.format_exception_only to recurse into exception groups #105292

Closed
@iritkatriel

Description

@iritkatriel

traceback.format_exception_only skips the backtrace and prints only the exception message. For exception groups it would be good to have an option to print the nested exceptions, recursively (just their types and message, no backtrace).

This is motivated by #104150.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions