From 9784630c543da23a4be829e63ac86193e42ef479 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 26 Apr 2020 16:12:26 -0400 Subject: [PATCH] iostream: Update comment Update comment from #2690 about ssl module exceptions. --- tornado/iostream.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tornado/iostream.py b/tornado/iostream.py index b11f65eed..1fe26ae6a 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -1415,7 +1415,9 @@ class SSLIOStream(IOStream): raise except ssl.CertificateError as err: # CertificateError can happen during handshake (hostname - # verification) and should be passed to user + # verification) and should be passed to user. Starting + # in Python 3.7, this error is a subclass of SSLError + # and will be handled by the previous block instead. return self.close(exc_info=err) except socket.error as err: # Some port scans (e.g. nmap in -sT mode) have been known -- 2.47.2