Skip to content

Commit cf65018

Browse files
committed
Fix SSL Error
1 parent 7e86407 commit cf65018

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: core/clients.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,14 @@ async def validate_database_connection(self, *, ssl_retry=True):
417417
if mongo_uri is None:
418418
mongo_uri = self.bot.config["mongo_uri"]
419419
for _ in range(3):
420-
logger.warning("FAILED TO VERIFY SSL CERTIFICATE, ATTEMPTING TO START WITHOUT SSL (UNSAFE).")
421-
logger.warning("To fix this warning, check there's no proxies blocking SSL cert verification, "
422-
"run \"Certificate.command\" on MacOS, "
423-
"and check certifi is up to date \"pip3 install --upgrade certifi\".")
420+
logger.warning(
421+
"FAILED TO VERIFY SSL CERTIFICATE, ATTEMPTING TO START WITHOUT SSL (UNSAFE)."
422+
)
423+
logger.warning(
424+
"To fix this warning, check there's no proxies blocking SSL cert verification, "
425+
'run "Certificate.command" on MacOS, '
426+
'and check certifi is up to date "pip3 install --upgrade certifi".'
427+
)
424428
self.db = AsyncIOMotorClient(mongo_uri, tlsAllowInvalidCertificates=True).modmail_bot
425429
return await self.validate_database_connection(ssl_retry=False)
426430
if "ServerSelectionTimeoutError" in message:

0 commit comments

Comments
 (0)