diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-04-01 19:43:39 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-04-01 19:43:39 (GMT) |
commit | c94a93aecbca31939086bc65f09f683bd521a2f6 (patch) | |
tree | 2844e6f0059f3894391a8558ad4b7d6eaccbb143 /Lib/asyncio/unix_events.py | |
parent | 2ba8ece5beb64126c719a837431cee3de890e451 (diff) | |
download | cpython-c94a93aecbca31939086bc65f09f683bd521a2f6.zip cpython-c94a93aecbca31939086bc65f09f683bd521a2f6.tar.gz cpython-c94a93aecbca31939086bc65f09f683bd521a2f6.tar.bz2 |
asyncio: Don't log ConnectionAbortedError
Issue #26509: In fatal error handlers, don't log ConnectionAbortedError which
occur on Windows.
Diffstat (limited to 'Lib/asyncio/unix_events.py')
-rw-r--r-- | Lib/asyncio/unix_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 7747ff4..46686a0 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -575,7 +575,7 @@ class _UnixWritePipeTransport(transports._FlowControlMixin, def _fatal_error(self, exc, message='Fatal error on pipe transport'): # should be called by 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: |