diff options
author | 2019-03-30 10:37:59 -0400 | |
---|---|---|
committer | 2019-03-30 10:37:59 -0400 | |
commit | 5fe5b7c688e19e533fe34d98b8c754bc67a58beb (patch) | |
tree | 16c2946f97f85facf6b994b3c48099d369ee7f5a /bot/seasons/evergreen/error_handler.py | |
parent | Merge pull request #163 from python-discord/easter_announce (diff) | |
parent | Blank line required between summary line and description. (diff) |
Merge pull request #146 from python-discord/flake8-docstring
Implement flake8-docstrings
Diffstat (limited to 'bot/seasons/evergreen/error_handler.py')
-rw-r--r-- | bot/seasons/evergreen/error_handler.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bot/seasons/evergreen/error_handler.py b/bot/seasons/evergreen/error_handler.py index 7774f06e..b0d05c41 100644 --- a/bot/seasons/evergreen/error_handler.py +++ b/bot/seasons/evergreen/error_handler.py @@ -8,8 +8,8 @@ from discord.ext import commands log = logging.getLogger(__name__)
-class CommandErrorHandler(commands.Cog):
- """A error handler for the PythonDiscord server!"""
+class CommandErrorHandler:
+ """A error handler for the PythonDiscord server."""
def __init__(self, bot):
self.bot = bot
@@ -26,7 +26,7 @@ class CommandErrorHandler(commands.Cog): @commands.Cog.listener()
async def on_command_error(self, ctx, error):
- """Activates when a command opens an error"""
+ """Activates when a command opens an error."""
if hasattr(ctx.command, 'on_error'):
return logging.debug(
@@ -100,5 +100,7 @@ class CommandErrorHandler(commands.Cog): def setup(bot):
+ """Error handler Cog load."""
+
bot.add_cog(CommandErrorHandler(bot))
log.info("CommandErrorHandler cog loaded")
|