Skip to content

Commit

Permalink
[commands] Revert on_error when cog is ejected for HelpCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Jun 28, 2023
1 parent 33243f9 commit 0871b34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions discord/ext/commands/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ def _eject_cog(self) -> None:
cog.walk_commands = cog.walk_commands.__wrapped__
self.cog = None

# Revert `on_error` to use the original one in case of race conditions
self.on_error = self._injected.on_help_command_error


class HelpCommand:
r"""The base implementation for help command formatting.
Expand Down

0 comments on commit 0871b34

Please sign in to comment.