when an error occure while Process()ing xmpp, we print the TB so it's easier to debug

This commit is contained in:
Yann Leboulanger 2005-05-20 17:30:29 +00:00
parent 80144824b0
commit 686a9a0bd9

View file

@ -21,6 +21,7 @@ import sys
import os
import time
import sre
import traceback
from calendar import timegm
import common.xmpp
@ -960,14 +961,14 @@ class Connection:
try:
self.connection.Process(timeout)
except:
gajim.log.debug('error appeared while processing xmpp: ' + \
str(sys.exc_info()[1]))
gajim.log.debug('error appeared while processing xmpp:')
traceback.print_exc()
self.connected = 0
self.dispatch('STATUS', 'offline')
try:
self.connection.disconnect()
except:
gajim.log.debug('error appeared while processing xmpp: ' + \
str(sys.exc_info()[1]))
gajim.log.debug('error appeared while processing xmpp:')
traceback.print_exc()
self.connection = None
# END GajimCore