forked from cswimr/SeaCogs
fix(seautils): catch the attributeerror
This commit is contained in:
parent
7bd9531b58
commit
516c0feecc
1 changed files with 1 additions and 1 deletions
|
@ -38,5 +38,5 @@ class SeaUtils(commands.Cog):
|
||||||
try:
|
try:
|
||||||
content = cf.pagify(inspect.getsource(self.bot.get_command(command).callback))
|
content = cf.pagify(inspect.getsource(self.bot.get_command(command).callback))
|
||||||
await ctx.send_interactive(content, box_lang='py')
|
await ctx.send_interactive(content, box_lang='py')
|
||||||
except OSError:
|
except (OSError, AttributeError):
|
||||||
await ctx.send("Command not found.")
|
await ctx.send("Command not found.")
|
||||||
|
|
Loading…
Reference in a new issue