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 3640c09 commit f1127a1Copy full SHA for f1127a1
1 file changed
Modules/_hashopenssl.c
@@ -2652,7 +2652,7 @@ hashlib_init_hmactype(PyObject *module)
2652
#ifdef Py_HAS_OPENSSL3_SUPPORT
2653
state->evp_hmac = EVP_MAC_fetch(NULL, "HMAC", NULL);
2654
if (state->evp_hmac == NULL) {
2655
- raise_ssl_error(PyExc_RuntimeError, "cannot initialize EVP_MAC HMAC");
+ raise_ssl_error(PyExc_ImportError, "cannot initialize EVP_MAC HMAC");
2656
return -1;
2657
}
2658
#endif
0 commit comments