From 0aaf156b641766ba2f26c5c54f2aa02016bb51f4 Mon Sep 17 00:00:00 2001 From: robot-piglet Date: Sat, 4 Jan 2025 15:53:08 +0300 Subject: Intermediate changes commit_hash:52e193336c733675186ea9e84a61825375cdab04 --- contrib/python/ipython/py3/IPython/core/debugger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/python/ipython/py3/IPython/core/debugger.py') diff --git a/contrib/python/ipython/py3/IPython/core/debugger.py b/contrib/python/ipython/py3/IPython/core/debugger.py index 84d3de8c5b3..e06bd56318e 100644 --- a/contrib/python/ipython/py3/IPython/core/debugger.py +++ b/contrib/python/ipython/py3/IPython/core/debugger.py @@ -550,7 +550,7 @@ class Pdb(OldPdb): So if frame is self.current_frame we instead return self.curframe_locals """ - if frame is self.curframe: + if frame is getattr(self, "curframe", None): return self.curframe_locals else: return frame.f_locals -- cgit v1.3