plugins XEP-0047, XEP-0065, XEP-0096: fixed use of failure.condition insteand of failure.value + removed gettext use for local logs
This commit is contained in:
parent
2a3b5ad8e3
commit
ab910bebfe
1 changed files with 10 additions and 10 deletions
|
|
@ -82,7 +82,7 @@ class XEP_0047(object):
|
|||
@param sid(unicode): session id of client.xep_0047_current_stream
|
||||
@param client: %(doc_client)s
|
||||
"""
|
||||
log.info(_("In-Band Bytestream: TimeOut reached for id {sid} [{profile}]")
|
||||
log.info(u"In-Band Bytestream: TimeOut reached for id {sid} [{profile}]"
|
||||
.format(sid=sid, profile=client.profile))
|
||||
self._killSession(sid, client, "TIMEOUT")
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ class XEP_0047(object):
|
|||
try:
|
||||
session = client.xep_0047_current_stream[sid]
|
||||
except KeyError:
|
||||
log.warning(_("kill id called on a non existant id"))
|
||||
log.warning(u"kill id called on a non existant id")
|
||||
return
|
||||
|
||||
try:
|
||||
|
|
@ -331,9 +331,9 @@ class XEP_0047(object):
|
|||
|
||||
def _IQDataStreamEb(self, failure, session_data, client):
|
||||
if failure.check(error.StanzaError):
|
||||
log.warning(u"IBB transfer failed: {}".format(failure.condition))
|
||||
log.warning(u"IBB transfer failed: {}".format(failure.value))
|
||||
else:
|
||||
log.error(u"IBB transfer failed: {}".format(failure.condition))
|
||||
log.error(u"IBB transfer failed: {}".format(failure.value))
|
||||
self.terminateStream(session_data, client, "IQ_ERROR")
|
||||
|
||||
def terminateStream(self, session_data, client, failure_reason=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue