fix(moderation): made the connect method raise an exception instead of returning one
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
This commit is contained in:
parent
4c7088eb80
commit
68431095e1
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue