feat(bot): ✨ Update leaderboard's design.

This commit is contained in:
Nyeki.py
2024-10-18 15:24:49 -03:00
parent 13aafc3fde
commit fe541e3df3
3 changed files with 22 additions and 22 deletions
+6 -1
View File
@@ -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)