bpo-30624 remaining bare except (#2108)

bpo-30624 / selectors: use bare 'except' clause instead of 'except
Exception'
This commit is contained in:
Giampaolo Rodola 2017-06-12 14:43:40 +02:00 committed by GitHub
parent 7d1017d9ed
commit ced36a993f
1 changed files with 1 additions and 1 deletions

View File

@ -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