diff options
author | Ryan Huber <rhuber@gmail.com> | 2014-10-28 10:28:48 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2014-10-28 10:28:48 -0700 |
commit | 9f2d6dcfa338900d80a60f076039b23a33d33fe7 (patch) | |
tree | 2fa7696993fa007918ecc445608c73d78d1c5cbf /wee_slack.py | |
parent | 164e361ddce7b7e22cd4b2b610a63a30a52adc55 (diff) | |
download | wee-slack-9f2d6dcfa338900d80a60f076039b23a33d33fe7.tar.gz |
oops!
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py index 77867df..3e62fd7 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -42,7 +42,7 @@ SLACK_API_TRANSLATOR = { def dbg(message, fout=False): message = "DEBUG: " + str(message) - message = message.encode('ascii', 'replace') + message = message.encode('ascii', 'ignore') if fout: file('/tmp/debug.log', 'a+').writelines(message+'\n') if slack_debug != None: @@ -230,7 +230,7 @@ class SlackServer(object): for item in self.channels: item.get_history() def buffer_prnt(self, message='no message', user="SYSTEM", backlog=False): - message = message.encode('ascii', 'replace') + message = message.encode('ascii', 'ignore') if backlog == True: tags = "no_highlight,notify_none,logger_backlog_end" else: @@ -383,7 +383,7 @@ class Channel(SlackThing): def buffer_prnt(self, user='unknown user', message='no message', time=0, backlog=False): set_read_marker = False time = float(time) - message = message.encode('ascii', 'replace') + message = message.encode('ascii', 'ignore') if time != 0 and self.last_read >= time: tags = "no_highlight,notify_none,logger_backlog_end" set_read_marker = True |