diff options
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index 194f8cf..7b7114a 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1282,6 +1282,8 @@ 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: + item['text'] = item['text'].decode('UTF-8', 'replace') if "type" in item: if item["type"] == "message" and "channel" in item.keys(): item["ts"] = message_json["ts"] |