Commit 0c023c02 authored by Robin Obůrka's avatar Robin Obůrka
Browse files

msgloop: Drop some unused things (or use them)

parent 819920db
......@@ -40,6 +40,7 @@ def sn_main(box_name, process, setup=None, teardown=None, argparser=None, args=N
except LoopHardFail as e:
logger.error("Hard Fail of box: %s",
# Finally will be called, because sys.exit() raises exception that will be uncaught.
......@@ -128,7 +129,7 @@ def _sn_main_loop(context, process):
process_result(context.socket_send, result)
context.errors_in_row = 0
except StopIteration as e:
except StopIteration:
context.logger.warning("Box %s raised StopIteration - unexpected behavior",
......@@ -167,7 +168,7 @@ def process_result(socket_send, result):
msg_out = encode_msg(msg_type, payload)
except (ValueError, InvalidMsgError) as e:
except (ValueError, InvalidMsgError):
raise LoopFail("Generated broken output message. Possibly bug in box.")
Supports Markdown
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