core (memory/disco): fixed checkFeature return Failure:

it seems that instanciating a Failure with a class name is not working anymore, so the
exceptions.FeatureNotFound is instanciated now.
This commit is contained in:
Goffi 2020-02-04 19:59:42 +01:00
commit d75bbaec4c

View file

@ -139,7 +139,7 @@ class Discovery(object):
"""
disco_infos = yield self.getInfos(client, jid_, node)
if not feature in disco_infos.features:
raise failure.Failure(exceptions.FeatureNotFound)
raise failure.Failure(exceptions.FeatureNotFound())
@defer.inlineCallbacks
def checkFeatures(self, client, features, jid_=None, identity=None, node=""):