aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2014-04-08 09:58:48 -0700
committerRyan Huber <rhuber@gmail.com>2014-04-08 09:58:48 -0700
commit012a53c33c60143135523732ffcdbc806af4e32b (patch)
tree64abf11e201d7c659264f5788d447b33840498bd
parent056816b854975c37453b27acb078d842bba0652c (diff)
downloadwee-slack-012a53c33c60143135523732ffcdbc806af4e32b.tar.gz
fix unicode errors
-rw-r--r--wee_slack.py1
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: