]> granicus.if.org Git - python/commitdiff
bpo-30624 remaining bare except (#2108)
authorGiampaolo Rodola <g.rodola@gmail.com>
Mon, 12 Jun 2017 12:43:40 +0000 (14:43 +0200)
committerGitHub <noreply@github.com>
Mon, 12 Jun 2017 12:43:40 +0000 (14:43 +0200)
bpo-30624 / selectors: use bare 'except' clause instead of 'except
Exception'

Lib/selectors.py

index f8b17a14f944d441223836bf4570609574751497..a9a0801ef0713bc92eea7d165e87c5595caf9696 100644 (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