Commits

Senthil Kumaran committed 4c3c489

Have Bdb frame_returning in the finally clause

  • Participants
  • Parent commits 5ea2373
  • Branches 2.7

Comments (0)

Files changed (1)

 
     def dispatch_return(self, frame, arg):
         if self.stop_here(frame) or frame == self.returnframe:
-            self.frame_returning = frame
-            self.user_return(frame, arg)
-            self.frame_returning = None
+            try:
+                self.frame_returning = frame
+                self.user_return(frame, arg)
+            finally:
+                self.frame_returning = None
             if self.quitting: raise BdbQuit
         return self.trace_dispatch