fix(moderation): pylint fix
Some checks failed
Pylint / Pylint (push) Failing after 7m47s

This commit is contained in:
Seaswimmer 2023-10-04 11:06:06 -04:00
parent c17f004c03
commit 437d504de9
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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()