diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-08-02 20:33:45 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-08-02 20:33:45 -0700 |
commit | 6bb94b8b4b602fcc63066a5887576fe204503d39 (patch) | |
tree | 29dd13016dca33ea67513199bbb6b21915aadd8a /wee_slack.py | |
parent | 317b7aedd13b781dafb723ae454c6218b6d7c430 (diff) | |
download | wee-slack-6bb94b8b4b602fcc63066a5887576fe204503d39.tar.gz |
derp - this broke stuff - removing fast
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 9fcccbc..df5b35e 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1350,7 +1350,7 @@ def process_message(message_json, cache=True): else: text = "" - text = text.decode('utf-8') + #text = text.decode('utf-8') ignore_alt_text = False if w.config_get_plugin('unfurl_ignore_alt_text') != "0": @@ -1394,6 +1394,8 @@ def process_message(message_json, cache=True): channel.cache_message(message_json) except Exception: + if channel: + channel.buffer_prnt('unknown', message_json['text'].encode('utf-8')) dbg("cannot process message {}\n{}".format(message_json, traceback.format_exc())) def unwrap_message(message_json): |