Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ced36a9

Browse files
authored
bpo-30624 remaining bare except (#2108)
bpo-30624 / selectors: use bare 'except' clause instead of 'except Exception'
1 parent 7d1017d commit ced36a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/selectors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def register(self, fileobj, events, data=None):
357357
poller_events |= self._EVENT_WRITE
358358
try:
359359
self._selector.register(key.fd, poller_events)
360-
except Exception:
360+
except:
361361
super().unregister(fileobj)
362362
raise
363363
return key

0 commit comments

Comments
 (0)