diff options
| author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2019-05-27 18:52:05 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-27 18:52:05 +0300 |
| commit | a79b6c578fcd2ea8be29440fdd8a998e5527200f (patch) | |
| tree | 1110f739cb39a308893a6de93c16f41bc493b67c /Lib/asyncio/sslproto.py | |
| parent | bfd0b7720196b9ff647cc33dafbd31a04496402c (diff) | |
| download | cpython-git-a79b6c578fcd2ea8be29440fdd8a998e5527200f.tar.gz | |
[3.7] bpo-37035: Don't log OSError (GH-13548) (#13594)
https://bugs.python.org/issue37035.
(cherry picked from commit 1f39c28e489cca0397fc4c3675d13569318122ac)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Diffstat (limited to 'Lib/asyncio/sslproto.py')
| -rw-r--r-- | Lib/asyncio/sslproto.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/sslproto.py b/Lib/asyncio/sslproto.py index 15eb9c7844..02d29738e4 100644 --- a/Lib/asyncio/sslproto.py +++ b/Lib/asyncio/sslproto.py @@ -700,7 +700,7 @@ class SSLProtocol(protocols.Protocol): self._fatal_error(exc, 'Fatal error on SSL transport') def _fatal_error(self, exc, message='Fatal error on transport'): - if isinstance(exc, base_events._FATAL_ERROR_IGNORE): + if isinstance(exc, OSError): if self._loop.get_debug(): logger.debug("%r: %s", self, message, exc_info=True) else: |
