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 cd90034 commit 2020850Copy full SHA for 2020850
Lib/traceback.py
@@ -415,7 +415,7 @@ def _walk_tb_with_full_positions(tb, _seen=None):
415
if tb.tb_lineno != tb.tb_frame.f_lineno and _seen:
416
for exc in reversed(_seen.values()):
417
if (handler_tb := exc.__traceback__) is not tb:
418
- while handler_tb.tb_lineno != tb.tb_frame.f_lineno:
+ while handler_tb.tb_frame != tb.tb_frame:
419
if not (handler_tb := handler_tb.tb_next):
420
break
421
else:
0 commit comments