diff options
Diffstat (limited to 'IRC')
-rw-r--r-- | IRC/ircasy.py | 5 |
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) |