Pull requests

#8 Merged
Repository
puzzlet
Branch
default
Repository
jaraco
Branch
default

sockets can be list of None (e.g. [None]) when disconnected

Author
  1. puzzlet
Reviewers
Description

Whenever I got disconnected from the remote IRC server, the bot breaks with this message:

DEBUG:irc.client:_dispatcher: disconnect
Traceback (most recent call last):
  File "my_bot.py", line ***, in <module>
    bot.start()
  File "/usr/lib/python2.7/dist-packages/irc/bot.py", line 247, in start
    super(SingleServerIRCBot, self).start()
  File "/usr/lib/python2.7/dist-packages/irc/client.py", line 1292, in start
    self.ircobj.process_forever()
  File "/usr/lib/python2.7/dist-packages/irc/client.py", line 268, in process_forever
    self.process_once(timeout)
  File "/usr/lib/python2.7/dist-packages/irc/client.py", line 248, in process_once
    (i, o, e) = select.select(sockets, [], [], timeout)
TypeError: argument must be an int, or have a fileno() method.

I believe this patch will fix the issue.

  • Learn about pull requests

Comments (0)