Kaydet (Commit) dc8cb3d0 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Have Bdb frame_returning in the finally clause

üst 7f6d4e19
...@@ -83,9 +83,11 @@ class Bdb: ...@@ -83,9 +83,11 @@ class Bdb:
def dispatch_return(self, frame, arg): def dispatch_return(self, frame, arg):
if self.stop_here(frame) or frame == self.returnframe: if self.stop_here(frame) or frame == self.returnframe:
self.frame_returning = frame try:
self.user_return(frame, arg) self.frame_returning = frame
self.frame_returning = None self.user_return(frame, arg)
finally:
self.frame_returning = None
if self.quitting: raise BdbQuit if self.quitting: raise BdbQuit
return self.trace_dispatch return self.trace_dispatch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment