Skip to content

Commit d55b7e7

Browse files
committed
fixup! fixup! fixup! fixup! fixup! Add tests for the fallback option
1 parent c812a3c commit d55b7e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/traceback.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def _extract_from_extended_frame_gen(klass, frame_gen, *, limit=None,
415415
# Only lineno is required, the remaining fields can be None if the
416416
# information is not available.
417417
builtin_limit = limit is BUILTIN_EXCEPTION_LIMIT
418-
if limit is None or limit is BUILTIN_EXCEPTION_LIMIT:
418+
if limit is None or builtin_limit:
419419
limit = getattr(sys, 'tracebacklimit', None)
420420
if limit is not None and limit < 0:
421421
limit = 0

0 commit comments

Comments
 (0)