From: Ben Darnell Date: Sun, 26 Apr 2020 20:12:26 +0000 (-0400) Subject: iostream: Update comment X-Git-Tag: v6.1.0b1~30^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9784630c543da23a4be829e63ac86193e42ef479;p=thirdparty%2Ftornado.git iostream: Update comment Update comment from #2690 about ssl module exceptions. --- 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