misc(moderation): testing a fix to the connect method
Some checks failed
Pylint / Pylint (push) Failing after 1m14s

This commit is contained in:
SeaswimmerTheFsh 2023-10-04 10:33:22 -04:00
parent cc744465c5
commit ebe6aebd47
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -60,17 +60,17 @@ class Moderation(commands.Cog):
conf = await self.check_conf([
'mysql_address',
'mysql_database',
'mysql_user',
'mysql_username',
'mysql_password'
])
if conf:
raise LookupError("MySQL connection details not set properly!")
try:
connection = mysql.connector.connect(
host=await self.config.mysql_address(),
user=await self.config.mysql_username(),
password=await self.config.mysql_password(),
database=await self.config.mysql_database()
host='localhost',
user='galaxy',
password='2iK39zNjkyqDoM!',
database='galaxy'
)
return connection
except mysql.connector.ProgrammingError as e: