commit | 611a3eab194dfd0a54e541e8e8547051df24bcfc | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@python.org> | Thu Sep 07 16:45:07 2017 -0700 |
committer | GitHub <noreply@github.com> | Thu Sep 07 16:45:07 2017 -0700 |
tree | c33877e9b68a2f24421cc18dd050a9da2813d855 | |
parent | 82cae7c5be4175e2173e4d342825b5315a9d612a [diff] [blame] |
[2.7] bpo-28958: Improve SSLContext error reporting. (GH-3414) (#3433) Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 17c9ac9)
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 761554a..5b4cec2 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c
@@ -2146,8 +2146,7 @@ return NULL; } if (ctx == NULL) { - PyErr_SetString(PySSLErrorObject, - "failed to allocate SSL context"); + _setSSLError(NULL, 0, __FILE__, __LINE__); return NULL; }