fix(logs): exceptions must derive from BaseException

This commit is contained in:
Romain J 2021-01-30 14:21:20 +01:00
parent 5991ebfaf2
commit 0c308727d2

View file

@ -80,10 +80,7 @@ class Logs(commands.Cog, name="Logs"):
self.bot.on_error = self.old_on_error
async def on_error(self, event, *args, **kwargs):
self.bot.console.log("Error!")
self.bot.console.log(args)
self.bot.console.log(kwargs)
raise event
raise # pylint: disable=misplaced-bare-raise
# =========================================================================
# =========================================================================