Skip to content

Commit

Permalink
python 3.7 makes it easier to get the message
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 9, 2021
1 parent 0cc4361 commit 5069ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/net/socket_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ def ssl_handshake(ssl_sock):
SSLCertVerificationError = getattr(ssl, "SSLCertVerificationError", None)
if SSLCertVerificationError and isinstance(e, SSLCertVerificationError):
try:
msg = e.args[1].split(":", 2)[2]
msg = getattr(e, "verify_message") or (e.args[1].split(":", 2)[2])
except (ValueError, IndexError):
msg = str(e)
status = EXIT_SSL_CERTIFICATE_VERIFY_FAILURE
Expand Down

0 comments on commit 5069ebd

Please sign in to comment.