diff --git a/src/common/connection.py b/src/common/connection.py index e50d5682e..3c8e3c657 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -951,13 +951,15 @@ class Connection: if self.connected: try: self.connection.Process(timeout) - except e, msg: - gajim.log.debug('error appeared while processing xmpp: %s' % msg) + except: + gajim.log.debug('error appeared while processing xmpp: ' + \ + str(sys.exc_info()[1])) self.connected = 0 self.dispatch('STATUS', 'offline') try: self.connection.disconnect() except: - gajim.log.debug('error appeared while processing xmpp: %s' % msg) + gajim.log.debug('error appeared while processing xmpp: ' + \ + str(sys.exc_info()[1])) self.connection = None # END GajimCore