aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/error_handler.py
diff options
context:
space:
mode:
authorGravatar sco1 <[email protected]>2019-03-19 14:17:59 -0400
committerGravatar sco1 <[email protected]>2019-03-19 14:17:59 -0400
commit74d6012bc80b93842c6081d115e87d6a8a77b95b (patch)
tree598ac286dc06932b17a57250c39102cf03a444c9 /bot/seasons/evergreen/error_handler.py
parentDocstring pass for Christmas cogs (diff)
Docstring pass for Evergreen cogs
Diffstat (limited to 'bot/seasons/evergreen/error_handler.py')
-rw-r--r--bot/seasons/evergreen/error_handler.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/seasons/evergreen/error_handler.py b/bot/seasons/evergreen/error_handler.py
index 47e18a31..dcdbe4e9 100644
--- a/bot/seasons/evergreen/error_handler.py
+++ b/bot/seasons/evergreen/error_handler.py
@@ -9,13 +9,13 @@ log = logging.getLogger(__name__)
class CommandErrorHandler:
- """A error handler for the PythonDiscord server!"""
+ """A error handler for the PythonDiscord server."""
def __init__(self, bot):
self.bot = bot
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(
@@ -108,5 +108,7 @@ class CommandErrorHandler:
def setup(bot):
+ """Error handler Cog load."""
+
bot.add_cog(CommandErrorHandler(bot))
log.debug("CommandErrorHandler cog loaded")