Commit 8150aa17 authored by Robin Obůrka's avatar Robin Obůrka

msgloop: Re-raise SetupError from loop - for late-detectable errors

I need to re-raise it otherwise it will be eaten by except Exception.
parent 3e6e2d44
...@@ -129,6 +129,9 @@ def _sn_main_loop(context, process): ...@@ -129,6 +129,9 @@ def _sn_main_loop(context, process):
context.logger.warning("Box %s raised StopIteration - unexpected behavior", context.name) context.logger.warning("Box %s raised StopIteration - unexpected behavior", context.name)
break break
except SetupError as e:
raise e
except Exception as e: except Exception as e:
logger.error("Uncaught exception from loop") logger.error("Uncaught exception from loop")
logger.exception(e) logger.exception(e)
......
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