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

This commit is contained in:
Stijn De Clercq 2020-12-23 00:18:45 +01:00
parent 0d75340d64
commit d8663bed38

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