Made sure to return after an error check
This commit is contained in:
parent
fa82e5403a
commit
abcd04e9ab
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ class Stats:
|
||||||
cmd = self.find_command(command)
|
cmd = self.find_command(command)
|
||||||
if cmd is None:
|
if cmd is None:
|
||||||
await self.bot.say("`{}` is not a valid command".format(command))
|
await self.bot.say("`{}` is not a valid command".format(command))
|
||||||
|
return
|
||||||
|
|
||||||
r_filter = {'command': cmd.qualified_name}
|
r_filter = {'command': cmd.qualified_name}
|
||||||
command_stats = await config.get_content('command_usage', r_filter)
|
command_stats = await config.get_content('command_usage', r_filter)
|
||||||
|
|
Loading…
Reference in a new issue