# HG changeset patch # User Goffi # Date 1620212291 -7200 # Node ID 41a6c144dc90f9288309f80acbc074bea808a964 # Parent 62f490eff51c7f991c7f818d687a498449acf49c core (xmpp): added `appCondition` argument to `sendError` diff -r 62f490eff51c -r 41a6c144dc90 sat/core/xmpp.py --- a/sat/core/xmpp.py Sat May 01 18:39:34 2021 +0200 +++ b/sat/core/xmpp.py Wed May 05 12:58:11 2021 +0200 @@ -533,13 +533,15 @@ iq_elt.timeout = timeout return iq_elt - def sendError(self, iq_elt, condition, text=None): + def sendError(self, iq_elt, condition, text=None, appCondition=None): """Send error stanza build from iq_elt @param iq_elt(domish.Element): initial IQ element @param condition(unicode): error condition """ - iq_error_elt = error.StanzaError(condition, text=text).toResponse(iq_elt) + iq_error_elt = error.StanzaError( + condition, text=text, appContidtion=appCondition + ).toResponse(iq_elt) self.xmlstream.send(iq_error_elt) def generateMessageXML(self, data, post_xml_treatments=None):