[svn r37287] don't eat exception, simply use finally
--HG-- branch : trunk
This commit is contained in:
parent
fc740689d7
commit
0fcaebd17c
|
@ -41,14 +41,13 @@ class Session(object):
|
||||||
colitems = self.config.getcolitems()
|
colitems = self.config.getcolitems()
|
||||||
try:
|
try:
|
||||||
self.header(colitems)
|
self.header(colitems)
|
||||||
|
try:
|
||||||
try:
|
try:
|
||||||
for colitem in colitems:
|
for colitem in colitems:
|
||||||
self.runtraced(colitem)
|
self.runtraced(colitem)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise
|
raise
|
||||||
except:
|
finally:
|
||||||
self.footer(colitems)
|
|
||||||
else:
|
|
||||||
self.footer(colitems)
|
self.footer(colitems)
|
||||||
except Exit, ex:
|
except Exit, ex:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue