Mercurial > libervia-backend
diff sat/plugins/plugin_misc_text_commands.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 | 559a625a236b |
children | 8418e0c83ed7 |
line wrap: on
line diff
--- 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