changeset 3542:53c1724a89ea

core (xmpp): catch `cancelError` in `pre_xml_treatments` in message workflow
author Goffi <goffi@goffi.org>
date Thu, 03 Jun 2021 15:40:57 +0200
parents 0985c47ffd96
children f19718296c20
files sat/core/xmpp.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sat/core/xmpp.py	Thu Jun 03 15:15:11 2021 +0200
+++ b/sat/core/xmpp.py	Thu Jun 03 15:40:57 2021 +0200
@@ -690,6 +690,7 @@
 
         pre_xml_treatments.addCallback(lambda __: self.generateMessageXML(data, post_xml_treatments))
         pre_xml_treatments.addCallback(lambda __: post_xml_treatments)
+        pre_xml_treatments.addErrback(self._cancelErrorTrap)
         post_xml_treatments.addCallback(lambda __: self.sendMessageData(data))
         if send_only:
             log.debug(_("Triggers, storage and echo have been inhibited by the "