Closed jaraco closed 8 years ago
Also fails on private chat:
#!python
Traceback (most recent call last):
File "Main.py", line 96, in <module>
main()
File "Main.py", line 93, in main
bot.start()
File "/usr/local/lib/python3.4/dist-packages/irc/bot.py", line 265, in start
super(SingleServerIRCBot, self).start()
File "/usr/local/lib/python3.4/dist-packages/irc/client.py", line 1274, in start
self.reactor.process_forever()
File "/usr/local/lib/python3.4/dist-packages/irc/client.py", line 276, in process_forever
self.process_once(timeout)
File "/usr/local/lib/python3.4/dist-packages/irc/client.py", line 257, in process_once
self.process_data(i)
File "/usr/local/lib/python3.4/dist-packages/irc/client.py", line 214, in process_data
c.process_data()
File "/usr/local/lib/python3.4/dist-packages/irc/client.py", line 1164, in process_data
Event(command, prefix, target, arguments))
File "/usr/local/lib/python3.4/dist-packages/irc/client.py", line 396, in _handle_event
result = handler.callback(connection, event)
File "/usr/local/lib/python3.4/dist-packages/irc/client.py", line 1237, in _dispatcher
method(connection, event)
File "Main.py", line 27, in on_dccmsg
c.privmsg("You said: " + e.arguments[0])
TypeError: Can't convert 'bytes' object to str implicitly
Original comment by: Jordan F
I note that Main.py is the scripts/testbot.py file (with modifications).
Original comment by: Jason R. Coombs
Update changelog; ref #57.
→ <
Original comment by: Jason R. Coombs
Decode raw bytes when handling DCC message. Is this the proper fix? Ref #57.
→ <<cset 475be4eb6511>>
Original comment by: Jason R. Coombs
Use sorted function to sort users, operators, and voiced. Fixes #57.
→ <<cset 79f3f94fa382>>
Original comment by: Jason R. Coombs
AttributeError: 'dict_keys' object has no attribute 'sort'
Full Traceback: