Commit cec25a65 authored by Ralf's avatar Ralf
Browse files

top-level exceptions, part 3

parent d7ea0cb8
......@@ -61,5 +61,5 @@ try:
the_led_actor.stop()
except:
# Make sure we log the error and terminate. Otherwise, some random thread that still runs may prevent us from terminating.
logger.critical("FATAL TOP-LEVEL EXCEPTION:\n%s" % (self.name, traceback.format_exc()))
logger.critical("FATAL TOP-LEVEL EXCEPTION:\n{}".format(traceback.format_exc()))
sys.exit(1)
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