fix(seautils): catch the attributeerror

This commit is contained in:
Seaswimmer 2024-05-13 20:17:00 -04:00
parent 7bd9531b58
commit 516c0feecc
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

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