From 739021ec02c90af4521dcfb443375f5199b33387 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 18 May 2005 18:57:54 +0000 Subject: [PATCH] print error messages when we get Process() exception --- src/common/connection.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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