diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py index c2a581a..a3f3d2e 100644 --- a/sleekxmpp/xmlstream/xmlstream.py +++ b/sleekxmpp/xmlstream/xmlstream.py @@ -258,10 +258,11 @@ class XMLStream(object): data = data.encode('utf-8') try: self.socket.send(data) - except socket.error,(errno, strerror): + #except socket.error,(errno, strerror): + except: self.state.set('connected', False) if self.state.reconnect: - logging.error("Disconnected. Socket Error #%s: %s" % (errno,strerror)) + logging.error("Disconnected. Socket Error.") self.disconnect(reconnect=True) return False return True