print error messages when we get Process() exception

This commit is contained in:
Yann Leboulanger 2005-05-18 18:57:54 +00:00
parent 120fb4b3a0
commit 739021ec02
1 changed files with 5 additions and 3 deletions

View File

@ -951,13 +951,15 @@ class Connection:
if self.connected: if self.connected:
try: try:
self.connection.Process(timeout) self.connection.Process(timeout)
except e, msg: 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.connected = 0 self.connected = 0
self.dispatch('STATUS', 'offline') self.dispatch('STATUS', 'offline')
try: try:
self.connection.disconnect() self.connection.disconnect()
except: 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 self.connection = None
# END GajimCore # END GajimCore