poller.unregister may raise ValueError on Py3

This commit is contained in:
Ask Solem 2013-04-17 14:46:47 +01:00
parent 4097d06228
commit 3ce16da2fc
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class MultiChannelPoller(object):
for fd in self._chan_to_sock.itervalues():
try:
self.poller.unregister(fd)
except KeyError:
except (KeyError, ValueError):
pass
self._channels.clear()
self._fd_to_chan.clear()