diff --git a/sat/core/xmpp.py b/sat/core/xmpp.py index 1d23fe36..638fb79a 100644 --- a/sat/core/xmpp.py +++ b/sat/core/xmpp.py @@ -533,13 +533,15 @@ class SatXMPPEntity: 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):