commit | 17c9ac927b97472dd080174fde709d9234848195 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@python.org> | Thu Sep 07 14:14:00 2017 -0700 |
committer | GitHub <noreply@github.com> | Thu Sep 07 14:14:00 2017 -0700 |
tree | e163ab88c15117498799d17c6047756f638c99ed | |
parent | 3147b0422cbeb98065666ccf95ab6845ac800fd4 [diff] [blame] |
bpo-28958: Improve SSLContext error reporting. (#3414) Signed-off-by: Christian Heimes <christian@python.org>
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index b8509ac..5ea354a 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c
@@ -2636,8 +2636,7 @@ return NULL; } if (ctx == NULL) { - PyErr_SetString(PySSLErrorObject, - "failed to allocate SSL context"); + _setSSLError(NULL, 0, __FILE__, __LINE__); return NULL; }