aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio/selector_events.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-04-01 21:43:39 +0200
committerVictor Stinner <victor.stinner@gmail.com>2016-04-01 21:43:39 +0200
commitc94a93aecbca31939086bc65f09f683bd521a2f6 (patch)
tree2844e6f0059f3894391a8558ad4b7d6eaccbb143 /Lib/asyncio/selector_events.py
parent2ba8ece5beb64126c719a837431cee3de890e451 (diff)
downloadcpython-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.py3
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: