when an error occure with the proxy, cath the exception
This commit is contained in:
parent
b0b185a9ad
commit
f8979c3719
|
@ -224,6 +224,12 @@ class GajimCore:
|
||||||
self.hub.sendPlugin('WARNING', None, _("Couldn't connect to %s : %s") \
|
self.hub.sendPlugin('WARNING', None, _("Couldn't connect to %s : %s") \
|
||||||
% (hostname, e))
|
% (hostname, e))
|
||||||
return 0
|
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:
|
else:
|
||||||
log.debug("Connected to server")
|
log.debug("Connected to server")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue