Commit a942e6bb authored by Taddeüs Kroes's avatar Taddeüs Kroes

Added initialization to prevent error

parent 7c668d57
......@@ -41,7 +41,7 @@ class BinaryMessage(Message):
class JSONMessage(TextMessage):
def __init__(self, data, **kwargs):
def __init__(self, data={}, **kwargs):
self.data = {}
self.data.update(data, **kwargs)
super(JSONMessage, self).__init__(json.dumps(self.data))
......
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