Skip to content

Commit

Permalink
Replace redundant on_error logic with super call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachaa-Thanasius committed Nov 29, 2023
1 parent 0f5c8f4 commit 2937f68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ async def on_error(self, itx: discord.Interaction, error: app_commands.AppComman
await itx.response.send_message(error.message)
else:
await itx.followup.send(error.message)
elif itx.command is not None:
_log.error("Ignoring exception in command %r", itx.command.name, exc_info=error)
else:
_log.error("Ignoring exception in command tree", exc_info=error)
await super().on_error(itx, error)

async def find_mention_for(
self,
Expand Down

0 comments on commit 2937f68

Please sign in to comment.