From 68431095e15ccd9cd2c371e972c02ba4c87beea6 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 4 Oct 2023 09:21:36 -0400 Subject: [PATCH] fix(moderation): made the connect method raise an exception instead of returning one --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index f7e016d..03636b1 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -51,7 +51,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) - return e + raise ConnectionRefusedError async def create_guild_table(self, guild: discord.Guild): database = await self.connect()