diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-06-12 12:43:40 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-12 12:43:40 (GMT) |
| commit | ced36a993fcfd1c76637119d31c03156a8772e11 (patch) | |
| tree | 04f127b65d9d46d4d276c44cf8a04c4062385504 /Lib/selectors.py | |
| parent | 7d1017d9ed3285857e827635eda966da246dcd5f (diff) | |
| download | cpython-ced36a993fcfd1c76637119d31c03156a8772e11.zip cpython-ced36a993fcfd1c76637119d31c03156a8772e11.tar.gz cpython-ced36a993fcfd1c76637119d31c03156a8772e11.tar.bz2 | |
bpo-30624 remaining bare except (#2108)
bpo-30624 / selectors: use bare 'except' clause instead of 'except
Exception'
Diffstat (limited to 'Lib/selectors.py')
| -rw-r--r-- | Lib/selectors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/selectors.py b/Lib/selectors.py index f8b17a1..a9a0801 100644 --- a/Lib/selectors.py +++ b/Lib/selectors.py @@ -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 |
