fix KeyboardInterrupt & SetupExit handling in tests/profiling/__init__.py
This commit is contained in:
parent
06cb88feac
commit
bb0aef7591
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue