Used the corrected error when checking if a command has never been used
This commit is contained in:
parent
7276277b3c
commit
b62aa7f0b4
|
@ -45,7 +45,7 @@ class Stats:
|
||||||
command_stats = await config.get_content('command_usage', r_filter)
|
command_stats = await config.get_content('command_usage', r_filter)
|
||||||
try:
|
try:
|
||||||
command_stats = command_stats[0]
|
command_stats = command_stats[0]
|
||||||
except IndexError:
|
except TypeError:
|
||||||
await self.bot.say("That command has never been used! You know I worked hard on that! :c")
|
await self.bot.say("That command has never been used! You know I worked hard on that! :c")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue