mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
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 @@ def register(self, fileobj, events, data=None):
|
|||
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 a new issue