Better error printing

This commit is contained in:
Zeva Rose 2021-06-29 20:33:01 -06:00
parent 6caee5c619
commit e49c3c1a22
2 changed files with 2 additions and 2 deletions

View file

@ -302,7 +302,7 @@ class DevCog(commands.Cog):
@commands.Cog.listener() @commands.Cog.listener()
async def on_command_error(self, ctx, error): async def on_command_error(self, ctx, error):
await ctx.send(str(error)) await ctx.send(f"```{traceback.format_exc()}```")
def setup(bot): def setup(bot):

View file

@ -81,7 +81,7 @@ class OwnerCog(commands.Cog):
await ctx.send("I'm afraid I can't let you do that") await ctx.send("I'm afraid I can't let you do that")
@commands.group(name="system", hidden=True, pass_context=True) @commands.group(name="system", hidden=True, pass_context=True)
@commands.check(user_is_bot_admin) @user_is_bot_admin()
async def _system(self, ctx): async def _system(self, ctx):
if ctx.invoked_subcommand is None: if ctx.invoked_subcommand is None:
await ctx.send( await ctx.send(