From b611ff92ea69cc1ac6b82aa3f06b9d9675e86a82 Mon Sep 17 00:00:00 2001 From: sco1 Date: Wed, 24 Apr 2019 17:20:30 -0400 Subject: Relint Seasonalbot with new linting rules --- bot/seasons/evergreen/error_handler.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'bot/seasons/evergreen/error_handler.py') diff --git a/bot/seasons/evergreen/error_handler.py b/bot/seasons/evergreen/error_handler.py index 26afe814..f4457f8f 100644 --- a/bot/seasons/evergreen/error_handler.py +++ b/bot/seasons/evergreen/error_handler.py @@ -27,7 +27,6 @@ class CommandErrorHandler(commands.Cog): @commands.Cog.listener() async def on_command_error(self, ctx, error): """Activates when a command opens an error.""" - if hasattr(ctx.command, 'on_error'): return logging.debug( "A command error occured but the command had it's own error handler." @@ -101,6 +100,5 @@ class CommandErrorHandler(commands.Cog): def setup(bot): """Error handler Cog load.""" - bot.add_cog(CommandErrorHandler(bot)) log.info("CommandErrorHandler cog loaded") -- cgit v1.2.3