Commit a2ba4b40 authored by Łukasz Nowak's avatar Łukasz Nowak

Do not die in case of problem with error reporting.

parent 89e09478
...@@ -618,7 +618,15 @@ class Slapgrid(object): ...@@ -618,7 +618,15 @@ class Slapgrid(object):
clean_run = False clean_run = False
exception = traceback.format_exc() exception = traceback.format_exc()
logger.error(exception) logger.error(exception)
try:
computer_partition.error(exception) computer_partition.error(exception)
except (SystemExit, KeyboardInterrupt):
raise
except Exception:
exception = traceback.format_exc()
logger.error('Problem during reporting error, continuing:\n' +
exception)
logger.info("Finished computer partitions...") logger.info("Finished computer partitions...")
return clean_run return clean_run
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment