diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-05-27 13:28:34 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-05-27 13:28:34 (GMT) |
commit | 1f39c28e489cca0397fc4c3675d13569318122ac (patch) | |
tree | 60e976746b5353b636d9db95e8a8728c4a1f3f6c /Lib/asyncio/selector_events.py | |
parent | ff6b2e66b19a26b4c2ab57e62e1ab9f3d94dd76a (diff) | |
download | cpython-1f39c28e489cca0397fc4c3675d13569318122ac.zip cpython-1f39c28e489cca0397fc4c3675d13569318122ac.tar.gz cpython-1f39c28e489cca0397fc4c3675d13569318122ac.tar.bz2 |
bpo-37035: Don't log OSError (GH-13548)
https://bugs.python.org/issue37035
Diffstat (limited to 'Lib/asyncio/selector_events.py')
-rw-r--r-- | Lib/asyncio/selector_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py index f5f43a9..44c380a 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -685,7 +685,7 @@ class _SelectorTransport(transports._FlowControlMixin, def _fatal_error(self, exc, message='Fatal error on transport'): # Should be called from exception handler only. - if isinstance(exc, base_events._FATAL_ERROR_IGNORE): + if isinstance(exc, OSError): if self._loop.get_debug(): logger.debug("%r: %s", self, message, exc_info=True) else: |