# HG changeset patch # User Goffi # Date 1580842782 -3600 # Node ID 0318802dfe28f48d5c1b6ba1afe91de8ad2b4e94 # Parent 3a8755fdc78dfe5533b67dff219227bf9a481ff7 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. diff -r 3a8755fdc78d -r 0318802dfe28 sat/memory/disco.py --- 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=""): diff -r 3a8755fdc78d -r 0318802dfe28 sat/plugins/plugin_misc_text_commands.py --- a/sat/plugins/plugin_misc_text_commands.py Tue Feb 04 18:24:15 2020 +0100 +++ b/sat/plugins/plugin_misc_text_commands.py Tue Feb 04 19:59:42 2020 +0100 @@ -371,12 +371,12 @@ whois_msg = [_("whois for %(jid)s") % {"jid": target_jid}] d = defer.succeed(None) - for ignore, callback in self._whois: + for __, callback in self._whois: d.addCallback( - lambda ignore: callback(client, whois_msg, mess_data, target_jid) + lambda __: callback(client, whois_msg, mess_data, target_jid) ) - def feedBack(ignore): + def feedBack(__): self.feedBack(client, "\n".join(whois_msg), mess_data) return False