From 672d35d44f8b5b06b4eaaec7de75d7b4921c1627 Mon Sep 17 00:00:00 2001 From: Goffi Date: Wed, 5 May 2021 12:58:11 +0200 Subject: [PATCH] core (xmpp): added `appCondition` argument to `sendError` --- sat/core/xmpp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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):