diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 7fee74cd534..36ce33fc53c 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -2334,7 +2334,7 @@ PyInit__ssl(void) /* Add symbols to module dict */ PySSLErrorObject = PyErr_NewException("ssl.SSLError", - PySocketModule.error, + PyExc_OSError, NULL); if (PySSLErrorObject == NULL) return NULL;