diff options
author | Lance Stout <lancestout@gmail.com> | 2011-11-19 19:01:07 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-11-19 19:01:07 -0800 |
commit | 24f27c0fe30b2c1f6bca194a1515112cf1bdfed3 (patch) | |
tree | 331fc8b78b1f27dea475a9a08dbfda74c39f900b | |
parent | 3019c82d8a81dad911c39431358abf3e3aee3476 (diff) | |
download | slixmpp-24f27c0fe30b2c1f6bca194a1515112cf1bdfed3.tar.gz slixmpp-24f27c0fe30b2c1f6bca194a1515112cf1bdfed3.tar.bz2 slixmpp-24f27c0fe30b2c1f6bca194a1515112cf1bdfed3.tar.xz slixmpp-24f27c0fe30b2c1f6bca194a1515112cf1bdfed3.zip |
Pass generic connection errors to XMLStream.exception()
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 3 |
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() |