Skip to content
Snippets Groups Projects
Commit 686a9a0b authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

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

parent 80144824
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment