Skip to content

Commit c1e945b

Browse files
committed
Fix pdb issues in Python 3.13.1
For some reason it is not always set, it was/is a bug in IPython to not check.
1 parent c162868 commit c1e945b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IPython/core/debugger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def _get_frame_locals(self, frame):
550550
So if frame is self.current_frame we instead return self.curframe_locals
551551
552552
"""
553-
if frame is self.curframe:
553+
if frame is getattr(self, "curframe", None):
554554
return self.curframe_locals
555555
else:
556556
return frame.f_locals

0 commit comments

Comments
 (0)