comparison src/plugins/plugin_xep_0065.py @ 1583:d46aae87c03a

plugins XEP-0047, XEP-0065, XEP-0096: fixed use of failure.condition insteand of failure.value + removed gettext use for local logs
author Goffi <goffi@goffi.org>
date Fri, 13 Nov 2015 16:46:31 +0100
parents 8cc7d83141a4
children b57b4683dc33
comparison
equal deleted inserted replaced
1582:a41cc0849008 1583:d46aae87c03a
1060 1060
1061 def _activationEb(self, failure): 1061 def _activationEb(self, failure):
1062 log.warning(u"Proxy activation error: {}".format(failure.value)) 1062 log.warning(u"Proxy activation error: {}".format(failure.value))
1063 1063
1064 def _IQNegotiationEb(self, stanza_err, session_data, client): 1064 def _IQNegotiationEb(self, stanza_err, session_data, client):
1065 log.warning(u"Socks5 transfer failed: {}".format(stanza_err.condition)) 1065 log.warning(u"Socks5 transfer failed: {}".format(stanza_err.value))
1066 # FIXME: must clean session 1066 # FIXME: must clean session
1067 1067
1068 def createSession(self, *args, **kwargs): 1068 def createSession(self, *args, **kwargs):
1069 """like [_createSession] but return the session deferred instead of the whole session 1069 """like [_createSession] but return the session deferred instead of the whole session
1070 1070