Cooler Didier no longer spams Zandbak error logs when working on new stuff

pull/21/head
Stijn De Clercq 2020-12-23 00:18:45 +01:00
parent 0d75340d64
commit d8663bed38
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ class Events(commands.Cog):
:param ctx: Discord Context
:param err: the error thrown
"""
# Zandbak Didier shouldn't spam the error logs
if self.client.user.id == int(constants.coolerDidierId):
raise err
# Don't handle commands that have their own custom error handler
if hasattr(ctx.command, 'on_error'):
return