aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-05-14 00:47:59 +0200
committerGravatar Leon Sandøy <[email protected]>2018-05-14 00:47:59 +0200
commitd96f70b6555775b99408bd7c6bef4b8894859c9d (patch)
tree190054e16b109e68dd2b7257899bec4cb6f63d81
parentBugfix for the aiohttp bug with Network Unreachable - will force the session ... (diff)
bugfix: commands always have the error property, we need to look for on_error
-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