diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-04-01 21:43:39 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-04-01 21:43:39 +0200 |
commit | c94a93aecbca31939086bc65f09f683bd521a2f6 (patch) | |
tree | 2844e6f0059f3894391a8558ad4b7d6eaccbb143 /Lib/asyncio/selector_events.py | |
parent | 2ba8ece5beb64126c719a837431cee3de890e451 (diff) | |
download | cpython-c94a93aecbca31939086bc65f09f683bd521a2f6.tar.gz cpython-c94a93aecbca31939086bc65f09f683bd521a2f6.zip |
asyncio: Don't log ConnectionAbortedError
Issue #26509: In fatal error handlers, don't log ConnectionAbortedError which
occur on Windows.
Diffstat (limited to 'Lib/asyncio/selector_events.py')
-rw-r--r-- | Lib/asyncio/selector_events.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py index 812fac19f86..7b1eef20f22 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -578,8 +578,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, (BrokenPipeError, - ConnectionResetError, ConnectionAbortedError)): + if isinstance(exc, base_events._FATAL_ERROR_IGNORE): if self._loop.get_debug(): logger.debug("%r: %s", self, message, exc_info=True) else: |