We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c812a3c commit d55b7e7Copy full SHA for d55b7e7
1 file changed
Lib/traceback.py
@@ -415,7 +415,7 @@ def _extract_from_extended_frame_gen(klass, frame_gen, *, limit=None,
415
# Only lineno is required, the remaining fields can be None if the
416
# information is not available.
417
builtin_limit = limit is BUILTIN_EXCEPTION_LIMIT
418
- if limit is None or limit is BUILTIN_EXCEPTION_LIMIT:
+ if limit is None or builtin_limit:
419
limit = getattr(sys, 'tracebacklimit', None)
420
if limit is not None and limit < 0:
421
limit = 0
0 commit comments