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/sslproto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/asyncio/sslproto.py') diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index dde980b68f..33b1840dfa 100644 --- a/Lib/asyncio/sslproto.py +++ b/Lib/asyncio/sslproto.py @@ -655,7 +655,7 @@ class SSLProtocol(protocols.Protocol): def _fatal_error(self, exc, message='Fatal error on transport'): # Should be called from exception handler only. - if isinstance(exc, (BrokenPipeError, ConnectionResetError)): + 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.1