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

when an error occure with the proxy, cath the exception

parent b0b185a9
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,12 @@ class GajimCore:
self.hub.sendPlugin('WARNING', None, _("Couldn't connect to %s : %s") \
% (hostname, e))
return 0
except common.xmlstream.error, e:
log.debug("Couldn't connect to %s %s" % (hostname, e))
self.hub.sendPlugin('STATUS', account, 'offline')
self.hub.sendPlugin('WARNING', None, _("Couldn't connect to %s : %s") \
% (hostname, e))
return 0
else:
log.debug("Connected to server")
......
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