diff sat/memory/disco.py @ 3156:0318802dfe28

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.
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2020 19:59:42 +0100
parents 7ce31f347ca3
children 12486cd4fa8b
line wrap: on
line diff
--- a/sat/memory/disco.py	Tue Feb 04 18:24:15 2020 +0100
+++ b/sat/memory/disco.py	Tue Feb 04 19:59:42 2020 +0100
@@ -139,7 +139,7 @@
         """
         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=""):