Skip to content
Permalink
Browse files

bpo-30624 remaining bare except (#2108)

bpo-30624 / selectors: use bare 'except' clause instead of 'except
Exception'
  • Loading branch information
giampaolo committed Jun 12, 2017
1 parent 7d1017d commit ced36a993fcfd1c76637119d31c03156a8772e11
Showing with 1 addition and 1 deletion.
  1. +1 −1 Lib/selectors.py
@@ -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

0 comments on commit ced36a9

Please sign in to comment.
You can’t perform that action at this time.