ID EN
Traceback

print_exception

Python 3.11

Print exception information and stack trace entries from traceback object tb to file. This differs from print_tb() in the following ways:

Syntax

PYTHON
traceback.print_exception(exc, /, [value, tb, ]limit=None, file=None, chain=True)

See Also

traceback object print_tb() SyntaxError print_tb() __cause__ __context__