summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/xmlstream.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-12-14 09:37:45 -0800
committerLance Stout <lancestout@gmail.com>2012-12-14 09:37:45 -0800
commitf431bbfca2b9862f954e25d7dd234a9131bc2ee1 (patch)
tree2d82e0a0a8fc3017cb60b9280e79847c6c50446b /sleekxmpp/xmlstream/xmlstream.py
parent6f8a4f83549ab1716ddca55c05518f3867eb9213 (diff)
parent8b29900be459dffcb32a9fc106caebbbf93e5b33 (diff)
downloadslixmpp-f431bbfca2b9862f954e25d7dd234a9131bc2ee1.tar.gz
slixmpp-f431bbfca2b9862f954e25d7dd234a9131bc2ee1.tar.bz2
slixmpp-f431bbfca2b9862f954e25d7dd234a9131bc2ee1.tar.xz
slixmpp-f431bbfca2b9862f954e25d7dd234a9131bc2ee1.zip
Merge branch 'master' into develop
Diffstat (limited to 'sleekxmpp/xmlstream/xmlstream.py')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index bea6e88f..7955fee5 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -550,7 +550,7 @@ class XMLStream(object):
cert.verify(self._expected_server_name, self._der_cert)
except cert.CertificateError as err:
if not self.event_handled('ssl_invalid_cert'):
- log.error(err.message)
+ log.error(err)
self.disconnect(send_close=False)
else:
self.event('ssl_invalid_cert',
@@ -859,7 +859,7 @@ class XMLStream(object):
cert.verify(self._expected_server_name, self._der_cert)
except cert.CertificateError as err:
if not self.event_handled('ssl_invalid_cert'):
- log.error(err.message)
+ log.error(err)
self.disconnect(self.auto_reconnect, send_close=False)
else:
self.event('ssl_invalid_cert', pem_cert, direct=True)