aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/error_handler.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-05-30 20:27:23 -0400
committerGravatar GitHub <[email protected]>2019-05-30 20:27:23 -0400
commit484f61b04c0cfa5c02a2047c1f3fc7f34418d212 (patch)
tree88258e0b987f9bc31bef53f5afcf90074eb4233b /bot/seasons/evergreen/error_handler.py
parentMerge pull request #211 from RohanRadia/master (diff)
parentFix snake draw command (diff)
Merge pull request #200 from python-discord/docstring-lint-change
Docstring lint change
Diffstat (limited to 'bot/seasons/evergreen/error_handler.py')
-rw-r--r--bot/seasons/evergreen/error_handler.py2
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")