Skip to content

Commit

Permalink
#672-fix-type-issue-while-handling-network-exception-option-2
Browse files Browse the repository at this point in the history
  • Loading branch information
msecrfe committed Nov 2, 2024
1 parent 761892b commit 1222566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sslyze/connection_helpers/tls_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def connect(self, should_retry_connection: bool = True) -> None:
)
except OSError as e:
# OSError is the parent of all (non-TLS) socket/connection errors so it should be last
if "Nassl SSL handshake failed" in e.args[0]:
if "Nassl SSL handshake failed" in str(e.args):
# Special error returned by nassl
raise ServerRejectedTlsHandshake(
server_location=self._server_location,
Expand Down

0 comments on commit 1222566

Please sign in to comment.