Name
tracebacklimit
Synopsis
The maximum number of levels of traceback displayed for unhandled
exceptions. By default, this attribute is not set (i.e., there is no
limit). When sys.tracebacklimit
is less than or
equal to 0
, traceback information is suppressed
and only the exception type and value are printed.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.