From c94a93aecbca31939086bc65f09f683bd521a2f6 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 1 Apr 2016 21:43:39 +0200 Subject: asyncio: Don't log ConnectionAbortedError Issue #26509: In fatal error handlers, don't log ConnectionAbortedError which occur on Windows. --- Lib/asyncio/selector_events.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/asyncio/selector_events.py') 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: -- cgit v1.2.3