summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-11-19 19:01:07 -0800
committerLance Stout <lancestout@gmail.com>2011-11-19 19:01:07 -0800
commit24f27c0fe30b2c1f6bca194a1515112cf1bdfed3 (patch)
tree331fc8b78b1f27dea475a9a08dbfda74c39f900b /sleekxmpp
parent3019c82d8a81dad911c39431358abf3e3aee3476 (diff)
downloadslixmpp-24f27c0fe30b2c1f6bca194a1515112cf1bdfed3.tar.gz
slixmpp-24f27c0fe30b2c1f6bca194a1515112cf1bdfed3.tar.bz2
slixmpp-24f27c0fe30b2c1f6bca194a1515112cf1bdfed3.tar.xz
slixmpp-24f27c0fe30b2c1f6bca194a1515112cf1bdfed3.zip
Pass generic connection errors to XMLStream.exception()
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index c3689ba0..6fe6ec51 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -1112,9 +1112,10 @@ class XMLStream(object):
except Socket.error as serr:
self.event('socket_error', serr)
log.exception('Socket Error')
- except:
+ except Exception as e:
if not self.stop.is_set():
log.exception('Connection error.')
+ self.exception(e)
if not self.stop.is_set() and self.auto_reconnect:
self.reconnect()