[alias] Fix empty error message

This commit is contained in:
nemunaire 2016-04-06 02:00:32 +02:00
parent 358499e6d5
commit abf810209e

View File

@ -232,8 +232,8 @@ def cmd_alias(msg):
channel=msg.channel)
else:
wym = guess(alias.cmd, context.data.getNode("aliases").index)
raise IMException(msg.args[0] + " is not an alias." + (" Would you mean: %s?" % ", ".join(wym)) if len(wym) else "")
wym = [m for m in guess(alias.cmd, context.data.getNode("aliases").index)]
raise IMException(msg.args[0] + " is not an alias." + (" Would you mean: %s?" % ", ".join(wym) if len(wym) else ""))
@hook.command("unalias",