[svn r37287] don't eat exception, simply use finally
--HG-- branch : trunk
This commit is contained in:
parent
fc740689d7
commit
0fcaebd17c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue