Different syntax: cannot mix except and finally any more

This commit is contained in:
Guido van Rossum 1992-04-03 16:32:37 +00:00
parent 6886c835aa
commit ceb3ba2afc
1 changed files with 4 additions and 3 deletions

View File

@ -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)