Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ceb3ba2

Browse files
committed
Different syntax: cannot mix except and finally any more
1 parent 6886c83 commit ceb3ba2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Lib/bdb.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,10 @@ def runctx(self, cmd, globals, locals):
246246
self.reset()
247247
sys.settrace(self.trace_dispatch)
248248
try:
249-
exec(cmd + '\n', globals, locals)
250-
except BdbQuit:
251-
pass
249+
try:
250+
exec(cmd + '\n', globals, locals)
251+
except BdbQuit:
252+
pass
252253
finally:
253254
self.quitting = 1
254255
sys.settrace(None)

0 commit comments

Comments
 (0)