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
|
self.bot.on_error = self.old_on_error
|
||||||
|
|
||||||
async def on_error(self, event, *args, **kwargs):
|
async def on_error(self, event, *args, **kwargs):
|
||||||
self.bot.console.log("Error!")
|
raise # pylint: disable=misplaced-bare-raise
|
||||||
self.bot.console.log(args)
|
|
||||||
self.bot.console.log(kwargs)
|
|
||||||
raise event
|
|
||||||
|
|
||||||
# =========================================================================
|
# =========================================================================
|
||||||
# =========================================================================
|
# =========================================================================
|
||||||
|
|
Loading…
Reference in a new issue