From 437d504de9758a2dd8401ad63cffeca0b11a7422 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 4 Oct 2023 11:06:06 -0400 Subject: [PATCH] fix(moderation): pylint fix --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index cab7e1a..e3486f9 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -76,7 +76,7 @@ class Moderation(commands.Cog): return connection except mysql.connector.ProgrammingError as e: logging.fatal("Unable to access the MySQL database!\nError:\n%s", e.msg) - raise ConnectionRefusedError(f"Unable to access the MySQL Database!\n{e.msg}") + raise ConnectionRefusedError(f"Unable to access the MySQL Database!\n{e.msg}") from e async def create_guild_table(self, guild: discord.Guild): database = await self.connect()