aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-03-15 01:03:52 +0100
committerlassulus <lassulus@googlemail.com>2014-03-15 01:03:52 +0100
commit582b4feed5f10140974de63b83bdbd3ee358e9b2 (patch)
tree3e5ebc2431eb29545a53407ff2981bd21b1d1d4a
parentce19cd047452940a06b89d687c271feb5bf530ed (diff)
ircasy: more debug in text decoding
-rw-r--r--IRC/ircasy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/IRC/ircasy.py b/IRC/ircasy.py
index fd261ae..ac07101 100644
--- a/IRC/ircasy.py
+++ b/IRC/ircasy.py
@@ -85,7 +85,10 @@ class asybot(asychat):
alarm(self.hammer_interval)
def collect_incoming_data(self, data):
- self.data += data.decode()
+ try:
+ self.data += data.decode()
+ except Exception as e:
+ print('error decoding message: ' + str(e));
def found_terminator(self):
self.log.debug('<< %s' % self.data)