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

messages: Fix uncatched exceptions from mesgpack

parent 0df903cf
......@@ -13,6 +13,10 @@ def parse_msg(data):
except IndexError:
raise InvalidMsgError("Not enough parts in message")
except (TypeError, msgpack.exceptions.UnpackException, UnicodeDecodeError):
raise InvalidMsgError("Broken message")
return msg_type, payload
......
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