fix(logs): exceptions must derive from BaseException
This commit is contained in:
parent
5991ebfaf2
commit
0c308727d2
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
||||
# =========================================================================
|
||||
# =========================================================================
|
||||
|
|
Loading…
Reference in a new issue