diff options
author | Ryan Huber <rhuber@gmail.com> | 2014-04-08 09:58:48 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2014-04-08 09:58:48 -0700 |
commit | 012a53c33c60143135523732ffcdbc806af4e32b (patch) | |
tree | 64abf11e201d7c659264f5788d447b33840498bd /wee_slack.py | |
parent | 056816b854975c37453b27acb078d842bba0652c (diff) | |
download | wee-slack-012a53c33c60143135523732ffcdbc806af4e32b.tar.gz |
fix unicode errors
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index 884b77c..3f9e5cc 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -162,6 +162,7 @@ def process_message(message_json): text = text.encode('ascii', 'ignore') else: text = "%s\tEDITED: %s" % (user, message_json["message"]["text"]) + text = text.encode('ascii', 'ignore') if channel.startswith('DM/'): buffer_name = "%s.%s" % (server, channel[3:]) else: |