Commit 819920db authored by Robin Obůrka's avatar Robin Obůrka

msgloop: Add note about sys.exit() behaviour

TODO: Will be nice to transform it into variable with error code.
parent ee8f5e06
...@@ -40,6 +40,7 @@ def sn_main(box_name, process, setup=None, teardown=None, argparser=None, args=N ...@@ -40,6 +40,7 @@ def sn_main(box_name, process, setup=None, teardown=None, argparser=None, args=N
except LoopHardFail as e: except LoopHardFail as e:
logger.error("Hard Fail of box: %s", context.name) logger.error("Hard Fail of box: %s", context.name)
# Finally will be called, because sys.exit() raises exception that will be uncaught.
sys.exit(1) sys.exit(1)
except KeyboardInterrupt: except KeyboardInterrupt:
......
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