From 0fcaebd17cbe1f30ea9f7517a569b74e9a367449 Mon Sep 17 00:00:00 2001 From: hpk Date: Wed, 24 Jan 2007 18:48:13 +0100 Subject: [PATCH] [svn r37287] don't eat exception, simply use finally --HG-- branch : trunk --- py/test/session.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/py/test/session.py b/py/test/session.py index e0e19627f..9d5551fea 100644 --- a/py/test/session.py +++ b/py/test/session.py @@ -42,13 +42,12 @@ class Session(object): try: self.header(colitems) try: - for colitem in colitems: - self.runtraced(colitem) - except KeyboardInterrupt: - raise - except: - self.footer(colitems) - else: + try: + for colitem in colitems: + self.runtraced(colitem) + except KeyboardInterrupt: + raise + finally: self.footer(colitems) except Exit, ex: pass