There are two exception catches for OSError, first one is a pass, second one is unreachable since it is caught and passed already.
|
def unregister(self, fd): |
|
try: |
|
self._epoll.unregister(fd) |
|
except (OSError, ValueError, KeyError, TypeError): |
|
pass |
|
except OSError as exc: |
|
if getattr(exc, 'errno', None) not in (errno.ENOENT, errno.EPERM): |
|
raise |
Probably second one should be caught and OSError in first should be deleted?
There are two exception catches for OSError, first one is a pass, second one is unreachable since it is caught and passed already.
kombu/kombu/utils/eventio.py
Lines 72 to 79 in 67588f8
Probably second one should be caught and OSError in first should be deleted?