summaryrefslogtreecommitdiffstats
path: root/Reaktor
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
commitb657927cf0b6420683c261ff32434b2b8b2cdf70 (patch)
treedb961bd6e3cdfb88df85367bb84fbe0b6c983c6b /Reaktor
parentd13ad30fdbf0638cf019f9e3888e5c1c6afd11ef (diff)
ircasy: more debug in text decoding
Diffstat (limited to 'Reaktor')
-rw-r--r--Reaktor/IRC/ircasy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Reaktor/IRC/ircasy.py b/Reaktor/IRC/ircasy.py
index fd261ae9..ac071013 100644
--- a/Reaktor/IRC/ircasy.py
+++ b/Reaktor/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)