diff options
author | Tollef Fog Heen <tfheen@err.no> | 2016-01-19 08:34:50 +0100 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2016-01-19 08:35:01 +0100 |
commit | 8a9363b86d73fcefef761478f1e1fb19cea8cccb (patch) | |
tree | 40cecdaab911a3f642a93c8308e559964e28e635 /wee_slack.py | |
parent | 7e5d83156a635d1acc7b28f5595761292af7941d (diff) | |
download | wee-slack-8a9363b86d73fcefef761478f1e1fb19cea8cccb.tar.gz |
Avoid wrong debug message for ping/pong replies
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 bcebcbb..c6d9b40 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1290,7 +1290,7 @@ def process_reply(message_json): server = servers.find(message_json["_server"]) identifier = message_json["reply_to"] item = server.message_buffer.pop(identifier) - if type(item['text']) is not unicode: + if 'text' in item and type(item['text']) is not unicode: item['text'] = item['text'].decode('UTF-8', 'replace') if "type" in item: if item["type"] == "message" and "channel" in item.keys(): |