diff options
author | 2019-04-24 17:20:30 -0400 | |
---|---|---|
committer | 2019-04-24 17:20:30 -0400 | |
commit | b611ff92ea69cc1ac6b82aa3f06b9d9675e86a82 (patch) | |
tree | 0fdb47359609c44479a331b5684dcb3d50a1ff56 /bot/seasons/evergreen/error_handler.py | |
parent | Remove docstring newline linting from ignored codes (diff) |
Relint Seasonalbot with new linting rules
Diffstat (limited to 'bot/seasons/evergreen/error_handler.py')
-rw-r--r-- | bot/seasons/evergreen/error_handler.py | 2 |
1 files changed, 0 insertions, 2 deletions
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")
|