aboutsummaryrefslogtreecommitdiff
path: root/discord/ext
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-06-14 01:35:35 -0400
committerRapptz <[email protected]>2016-06-14 01:35:35 -0400
commit4dbac9423d12158834668e5ed633b8f2617b9827 (patch)
treebca87892fb1ce2406bd7e7c2759dee707dfe133d /discord/ext
parentFix concurrently joining more than one voice server at a time (diff)
downloaddiscord.py-4dbac9423d12158834668e5ed633b8f2617b9827.tar.xz
discord.py-4dbac9423d12158834668e5ed633b8f2617b9827.zip
[commands] Only show CommandNotFound on non-empty commands.
Diffstat (limited to 'discord/ext')
-rw-r--r--discord/ext/commands/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index 82a5653d..06dedf87 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)