diff options
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r-- | Lib/bdb.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -246,9 +246,10 @@ class Bdb: # Basic Debugger self.reset() sys.settrace(self.trace_dispatch) try: - exec(cmd + '\n', globals, locals) - except BdbQuit: - pass + try: + exec(cmd + '\n', globals, locals) + except BdbQuit: + pass finally: self.quitting = 1 sys.settrace(None) |