fix(seautils): catch the attributeerror
All checks were successful
Actions / Build Documentation (MkDocs) (push) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (push) Successful in 41s

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

View file

@ -38,5 +38,5 @@ class SeaUtils(commands.Cog):
try:
content = cf.pagify(inspect.getsource(self.bot.get_command(command).callback))
await ctx.send_interactive(content, box_lang='py')
except OSError:
except (OSError, AttributeError):
await ctx.send("Command not found.")