From 857705e8f452be0472bd4c29d5904b6f3379ed7c Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Tue, 11 May 2010 18:58:40 +0200 Subject: [PATCH] RAPI client: Improve SSL error reporting Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Guido Trotter <ultrotter@google.com> --- lib/rapi/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rapi/client.py b/lib/rapi/client.py index dccbf95a7..ce1ba1146 100644 --- a/lib/rapi/client.py +++ b/lib/rapi/client.py @@ -403,7 +403,7 @@ class GanetiRapiClient(object): resp = self._http.open(req) encoded_response_content = resp.read() except (OpenSSL.SSL.Error, OpenSSL.crypto.Error), err: - raise CertificateError("SSL issue: %s" % err) + raise CertificateError("SSL issue: %r" % err) if encoded_response_content: response_content = simplejson.loads(encoded_response_content) -- GitLab