Skip to content

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

Closed

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

Activity

  1. added a commit that references this issue on Jun 4, 2023
  2. added a commit that references this issue on Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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