[issue12684] profile does not dump stats on exception like cProfile does
report at bugs.python.org
Sat Mar 17 19:22:29 CET 2012
Georg Brandl <georg at python.org> added the comment:
The same fix should be applied to runctx() too.
The SystemExit handling is fine, it's in the original code also.
I would recommend making a single try-except-finally statement.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list