Skip to content

Commit

Permalink
error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gunyu1019 committed Nov 1, 2021
1 parent 7db29fd commit 9e1ff6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _traceback_msg(self, tb):

@commands.Cog.listener()
async def on_command_exception(self, ctx, error):
exc_name = str(type(error))
exc_name = type(error)
exc_list = [str(x) for x in error.args]

if not exc_list:
Expand Down

0 comments on commit 9e1ff6b

Please sign in to comment.