Skip to content

Commit 712d610

Browse files
authored
Merge pull request tornadoweb#2847 from tornadoweb/bdarnell-patch-1
iostream: Update comment
2 parents c3c263d + 9784630 commit 712d610

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tornado/iostream.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,9 @@ def _do_ssl_handshake(self) -> None:
14151415
raise
14161416
except ssl.CertificateError as err:
14171417
# CertificateError can happen during handshake (hostname
1418-
# verification) and should be passed to user
1418+
# verification) and should be passed to user. Starting
1419+
# in Python 3.7, this error is a subclass of SSLError
1420+
# and will be handled by the previous block instead.
14191421
return self.close(exc_info=err)
14201422
except socket.error as err:
14211423
# Some port scans (e.g. nmap in -sT mode) have been known

0 commit comments

Comments
 (0)