Better error printing
This commit is contained in:
parent
6caee5c619
commit
e49c3c1a22
2 changed files with 2 additions and 2 deletions
|
@ -302,7 +302,7 @@ class DevCog(commands.Cog):
|
|||
|
||||
@commands.Cog.listener()
|
||||
async def on_command_error(self, ctx, error):
|
||||
await ctx.send(str(error))
|
||||
await ctx.send(f"```{traceback.format_exc()}```")
|
||||
|
||||
|
||||
def setup(bot):
|
||||
|
|
|
@ -81,7 +81,7 @@ class OwnerCog(commands.Cog):
|
|||
await ctx.send("I'm afraid I can't let you do that")
|
||||
|
||||
@commands.group(name="system", hidden=True, pass_context=True)
|
||||
@commands.check(user_is_bot_admin)
|
||||
@user_is_bot_admin()
|
||||
async def _system(self, ctx):
|
||||
if ctx.invoked_subcommand is None:
|
||||
await ctx.send(
|
||||
|
|
Loading…
Add table
Reference in a new issue