Pass generic connection errors to XMLStream.exception()
This commit is contained in:
parent
3019c82d8a
commit
24f27c0fe3
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue