mirror of https://github.com/celery/kombu.git
poller.unregister may raise ValueError on Py3
This commit is contained in:
parent
4097d06228
commit
3ce16da2fc
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue