aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 2d059a1..98941c7 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -166,7 +166,7 @@ class EventRouter(object):
now = time.time()
mtype = message_json.get('type', 'unknown')
f = open('{}/{}-{}.json'.format(RECORD_DIR, now, mtype), 'w')
- f.write("{}".format(message_json))
+ f.write("{}".format(json.dumps(message_json)))
f.close()
self.receive_json(json.dumps(message_json))
except WebSocketConnectionClosedException: