From 876b2ac5929fd9edcf7c03d1f28ee5334bce60ea Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Sun, 15 Mar 2015 16:17:19 -0400 Subject: The message is not a basestring and basestring is an awful type anyway. --- doc/api/crypto.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/api/crypto.rst b/doc/api/crypto.rst index 3955802..f378e84 100644 --- a/doc/api/crypto.rst +++ b/doc/api/crypto.rst @@ -543,9 +543,11 @@ The X509StoreContextError is an exception raised from `X509StoreContext.verify_certificate` in circumstances where a certificate cannot be verified in a provided context. -The exception objects have a :py:class:`basestring` ``message`` attribute which -contains error messages and :py:class:`X509` ``certificate`` attribute by which -they indicate where the verification error was detected. +The certificate for which the verification error was detected is given by the +``certificate`` attribute of the exception instance as a :class:`X509` +instance. + +Details about the verification error are given in the exception's ``args`` attribute. X509StoreContext objects -- cgit v1.2.1