tools (sat_defer), plugin XEP-0060: added a function "stanza2NotFound" to convert item-not-found StanzaError to exceptions.NotFound in an errback

This commit is contained in:
Goffi 2019-04-14 08:21:51 +02:00
commit 1ccb54e571

View file

@ -611,6 +611,7 @@ class XEP_0060(object):
)
# we have no MAM data here, so we add None
d.addCallback(lambda data: data + (None,))
d.addErrback(sat_defer.stanza2NotFound)
d.addTimeout(TIMEOUT, reactor)
else:
# if mam is requested, we have to do a totally different query