We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54846cd commit c2aefc2Copy full SHA for c2aefc2
pymongo/pyopenssl_context.py
@@ -420,9 +420,9 @@ def wrap_socket(
420
pyopenssl.verify_ip_address(ssl_conn, server_hostname)
421
else:
422
pyopenssl.verify_hostname(ssl_conn, server_hostname)
423
- except ( # type:ignore[misc]
424
- service_identity.SICertificateError,
425
- service_identity.SIVerificationError,
+ except (
+ service_identity.CertificateError,
+ service_identity.VerificationError,
426
) as exc:
427
raise _CertificateError(str(exc)) from None
428
return ssl_conn
0 commit comments