pyHoNBot
pyHoNBot copied to clipboard
broken with patch 3.9
error: uncaptured python exception, closing channel <bot.Bot connected xxxxxxxx:xxxxxx at 0x319fe88> (<type 'exceptions.UnicodeDecodeError'>:'utf8' codec can't decode byte 0x86 in position 0: invalid start byte [C:\python27\lib\asyncore.py|read|83] [C:\python27\lib\asyncore.py|handle_read_event|4 49] [C:\python27\lib\asynchat.py|handle_read|147] [C:\Users\Ilya\Code\pyHoNBot\bot.py|found_terminator|102] [C:\Users\Ilya\Code\pyHoNBot\bot.py|dispat ch|454] [C:\Users\Ilya\Code\pyHoNBot\hon\packets.py|parse_packet|279] [C:\Users\Ilya\Code\pyHoNBot\hon\packets.py|parse_channel_join|137] [C:\Users\Il ya\Code\pyHoNBot\hon\packets.py|parse_part|261] [C:\python27\lib\encodings\utf_8.py|decode|16])
Indeed - seems not to be working. Mine just tries to reconnect all the time.
(<class 'struct.error'>, error('unpack requires a string argument of length 42',)) <traceback object at 0x06BA5558> (<class 'struct.error'>, error('unpack requires a string argument of length 42',), <traceback object at 0x06BA5558>)
Changing this line on "hon/packets.py" worked for me:
res.append(data[:i].decode("utf-8"))
to:
res.append(data[:i].decode("ISO-8859-1"))