Skip to content
Snippets Groups Projects
Commit 14f12323 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

get SSL error message where it is in Error instance

parent 9d068dc3
No related branches found
No related tags found
No related merge requests found
......@@ -769,7 +769,7 @@ class NonBlockingTLS(PlugIn):
store.add_cert(X509cert)
except OpenSSL.crypto.Error, exception_obj:
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:
log.warning(
'Unknown error while loading certificate from file %s' % \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment