diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-02-01 19:14:52 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-02-01 19:14:52 -0800 |
commit | a97b310f586a498de7a2d5d9a0018dfeaa21d980 (patch) | |
tree | 197fcd9231314adf4cd7d0609cda36ab88b7fac3 /wee_slack.py | |
parent | 8916744f0335bfbdddcbe87703eb518891d69503 (diff) | |
download | wee-slack-a97b310f586a498de7a2d5d9a0018dfeaa21d980.tar.gz |
more test cases + recorder outputs json properly
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
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: |