[commands] Only show CommandNotFound on non-empty commands.

This commit is contained in:
Rapptz 2016-06-14 01:35:35 -04:00
parent f6ef4868d1
commit 4dbac9423d

View File

@ -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)