aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/events.py b/bot/cogs/events.py
index 9375c348f..9727ed3a7 100644
--- a/bot/cogs/events.py
+++ b/bot/cogs/events.py
@@ -48,7 +48,7 @@ class Events:
else:
help_command = (self.bot.get_command("help"),)
- if hasattr(command, "error"):
+ if hasattr(command, "on_error"):
log.debug(f"Command {command} has a local error handler, ignoring.")
return