fix KeyboardInterrupt & SetupExit handling in tests/profiling/__init__.py

This commit is contained in:
Jurko Gospodnetić 2014-05-17 14:09:25 +02:00
parent 06cb88feac
commit bb0aef7591
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ class ProfilerBase(object):
times.append(time)
if self.show_each_timing:
print("%d. %s" % (time,))
except (KeyboardInterrupt, SystemExit):
raise
except Exception:
timer.print_exc()
else: