aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
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