Skip to content

Commit

Permalink
Also handle ConnectionResetError (improves 1633987)
Browse files Browse the repository at this point in the history
  • Loading branch information
azadi committed May 3, 2020
1 parent 1633987 commit e5cb991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esnicheck/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def has_tls13(self):
with conn.wrap_socket(sock,
server_hostname=self.hostname) as ssock:
protocol = ssock.version()
except ConnectionRefusedError:
except (ConnectionRefusedError, ConnectionResetError):
return (False, "Unable to connect to port 443")
except ssl.CertificateError as error:
return (False, error.verify_message)
Expand Down

0 comments on commit e5cb991

Please sign in to comment.