[activator,reagent] do not print stack content in case of KeyboardInterrupt exception

This commit is contained in:
Fabio Erculiani
2011-07-17 16:30:17 +02:00
parent a248b0f5c3
commit f5056a1cca
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -86,12 +86,12 @@ def handle_exception(exc_class, exc_instance, exc_tb):
uninstall_exception_handler()
entropy.tools.kill_threads()
# always slap exception data (including stack content)
entropy.tools.print_exception(tb_data = exc_tb)
if exc_class is KeyboardInterrupt:
raise SystemExit(1)
# always slap exception data (including stack content)
entropy.tools.print_exception(tb_data = exc_tb)
raise exc_instance
def install_exception_handler():
+3 -3
View File
@@ -132,12 +132,12 @@ def handle_exception(exc_class, exc_instance, exc_tb):
uninstall_exception_handler()
entropy.tools.kill_threads()
# always slap exception data (including stack content)
entropy.tools.print_exception(tb_data = exc_tb)
if exc_class is KeyboardInterrupt:
raise SystemExit(1)
# always slap exception data (including stack content)
entropy.tools.print_exception(tb_data = exc_tb)
raise exc_instance
def install_exception_handler():