Content-Length: 254705 | pFad | https://github.com/python/cpython/issues/105292

43 add option to traceback.format_exception_only to recurse into exception groups · Issue #105292 · python/cpython · GitHub
Skip to content

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

@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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/105292

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy