mirror of https://github.com/python/cpython
bpo-30624 remaining bare except (#2108)
bpo-30624 / selectors: use bare 'except' clause instead of 'except Exception'
This commit is contained in:
parent
7d1017d9ed
commit
ced36a993f
|
@ -357,7 +357,7 @@ class _PollLikeSelector(_BaseSelectorImpl):
|
|||
poller_events |= self._EVENT_WRITE
|
||||
try:
|
||||
self._selector.register(key.fd, poller_events)
|
||||
except Exception:
|
||||
except:
|
||||
super().unregister(fileobj)
|
||||
raise
|
||||
return key
|
||||
|
|
Loading…
Reference in New Issue