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 f1127a1 commit 6179261Copy full SHA for 6179261
1 file changed
Modules/_hashopenssl.c
@@ -2652,7 +2652,8 @@ 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_ImportError, "cannot initialize EVP_MAC HMAC");
+ ERR_clear_error();
2656
+ PyErr_SetString(PyExc_ImportError, "cannot initialize EVP_MAC HMAC");
2657
return -1;
2658
}
2659
#endif
0 commit comments