diff --git a/bot.py b/bot.py index 21ba4ab..1054797 100755 --- a/bot.py +++ b/bot.py @@ -22,6 +22,8 @@ def decode(bytes): text = bytes.decode('iso-8859-1') except UnicodeDecodeError: text = bytes.decode('cp1252') + except AttributeError: + return bytes return text class Phenny(irc.Bot):