From 4dbac9423d12158834668e5ed633b8f2617b9827 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 14 Jun 2016 01:35:35 -0400 Subject: [PATCH] [commands] Only show CommandNotFound on non-empty commands. --- discord/ext/commands/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 82a5653db..06dedf87f 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -656,7 +656,7 @@ class Bot(GroupMixin, discord.Client): ctx.command.dispatch_error(e, ctx) else: self.dispatch('command_completion', command, ctx) - else: + elif invoker: exc = CommandNotFound('Command "{}" is not found'.format(invoker)) self.dispatch('command_error', exc, ctx)