diff options
author | 2018-05-14 00:47:59 +0200 | |
---|---|---|
committer | 2018-05-14 00:47:59 +0200 | |
commit | d96f70b6555775b99408bd7c6bef4b8894859c9d (patch) | |
tree | 190054e16b109e68dd2b7257899bec4cb6f63d81 | |
parent | Bugfix 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.py | 2 |
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 |