summaryrefslogtreecommitdiffstats
path: root/Lib/bdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index a5b580b..15a8023 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -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)