Commit b8896fef authored by Robin Obůrka's avatar Robin Obůrka

msgloop: Improve working with exceptions

parent 02717bb9
......@@ -165,8 +165,7 @@ class SNBox():
except LoopHardFail as e:
self.logger.error("Hard Fail of box: %s",
self.logger.exception("Hard Fail of box: %s",
# Finally will be called, because sys.exit() raises exception that will be uncaught.
......@@ -224,8 +223,7 @@ class SNBox():
raise e
except Exception as e:
self.logger.error("Uncaught exception from loop: %s", type(e).__name__)
self.logger.exception("Uncaught exception from loop")
self.errors_in_row += 1
if self.errors_in_row > 10:
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