get SSL error message where it is in Error instance

This commit is contained in:
Yann Leboulanger 2007-12-15 12:10:25 +00:00
parent 9d068dc322
commit 14f1232308
1 changed files with 1 additions and 1 deletions

View File

@ -769,7 +769,7 @@ class NonBlockingTLS(PlugIn):
store.add_cert(X509cert) store.add_cert(X509cert)
except OpenSSL.crypto.Error, exception_obj: except OpenSSL.crypto.Error, exception_obj:
log.warning('Unable to load a certificate from file %s: %s' %\ log.warning('Unable to load a certificate from file %s: %s' %\
(gajim.MY_CACERTS, exception_obj.message[0][2])) (gajim.MY_CACERTS, exception_obj.args[0][0][2]))
except: except:
log.warning( log.warning(
'Unknown error while loading certificate from file %s' % \ 'Unknown error while loading certificate from file %s' % \