Mercurial > libervia-backend
diff sat/plugins/plugin_xep_0060.py @ 2911:cd391ea847cb
tools (sat_defer), plugin XEP-0060: added a function "stanza2NotFound" to convert item-not-found StanzaError to exceptions.NotFound in an errback
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 14 Apr 2019 08:21:51 +0200 |
parents | 0b7ce5daee9b |
children | ab2696e34d29 |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0060.py Sun Apr 14 08:21:51 2019 +0200 +++ b/sat/plugins/plugin_xep_0060.py Sun Apr 14 08:21:51 2019 +0200 @@ -611,6 +611,7 @@ ) # 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