-
-
Notifications
You must be signed in to change notification settings - Fork 972
Open
Description
There are two exception catches for OSError, first one is a pass, second one is unreachable since it is caught and passed already.
Lines 72 to 79 in 67588f8
| 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?
Metadata
Metadata
Assignees
Labels
No labels