# HG changeset patch # User Goffi # Date 1457354953 -3600 # Node ID be61c5c5e4742bd2c2fac55d21b30b279e70e479 # Parent 7b9cdde29d8ba69fca26d554d0018aa554140785 plugin text commands: fixed log in genericErrback which was raising an exception when something than StanzaError was received diff -r 7b9cdde29d8b -r be61c5c5e474 src/plugins/plugin_misc_text_commands.py --- a/src/plugins/plugin_misc_text_commands.py Sat Mar 05 20:19:40 2016 +0100 +++ b/src/plugins/plugin_misc_text_commands.py Mon Mar 07 13:49:13 2016 +0100 @@ -210,7 +210,11 @@ raise failure.Failure(exceptions.CancelError()) def genericErrback(failure): - self.feedBack("Command failed with condition '%s'" % failure.value.condition, mess_data, profile) + try: + msg = u"with condition {}".format(failure.value.condition) + except AttributeError: + msg = u"with error {}".format(failure.value) + self.feedBack(u"Command failed {}".format(msg), mess_data, profile) return False mess_data["unparsed"] = msg[1 + len(command):] # part not yet parsed of the message