feat(bot): ✨ Update leaderboard's design.
This commit is contained in:
+6
-1
@@ -7,7 +7,7 @@ from discord import abc
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import errors
|
||||
|
||||
from tortoise import expressions, transactions
|
||||
from tortoise import expressions, transactions, exceptions as tortoise_exc
|
||||
|
||||
import redis.asyncio as aredis
|
||||
|
||||
@@ -366,6 +366,11 @@ class Payphone(commands.AutoShardedBot):
|
||||
|
||||
elif isinstance(exception, errors.CommandNotFound):
|
||||
return
|
||||
|
||||
elif isinstance(exception, tortoise_exc.TransactionManagementError):
|
||||
# Tortoise ORM bug. This may need to be logged for debugging, but for now they just
|
||||
# clutter the logs.
|
||||
return
|
||||
|
||||
else:
|
||||
return await super().on_command_error(context, exception)
|
||||
|
||||
Reference in New Issue
Block a user