misc(moderation): testing a fix to the connect method
Some checks failed
Pylint / Pylint (push) Failing after 1m14s
Some checks failed
Pylint / Pylint (push) Failing after 1m14s
This commit is contained in:
parent
cc744465c5
commit
ebe6aebd47
1 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue