From ceb3ba2afcbd4174b55744b5ad2560e081708061 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 3 Apr 1992 16:32:37 +0000 Subject: Different syntax: cannot mix except and finally any more --- Lib/bdb.py | 7 ++++--- 1 file 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) -- cgit v0.12