diff sat/core/xmpp.py @ 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 4b33ed5abd8f
children 01c23359b915
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 "