#8 Merged
Repository
puzzlet puzzlet
Branch
default
Repository
jaraco jaraco
Branch
default

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

Author
  1. puzzlet avatarpuzzlet
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.

Comments (0)

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.