use 'tlsCAFile' instead of deprecated 'ssl_ca_certs' (#5080)

This commit is contained in:
Jakub Trllo 2023-06-02 10:58:09 +02:00 committed by Jakub Trllo
parent 3869a6f1d0
commit 689d29abff
2 changed files with 3 additions and 3 deletions

View file

@ -224,7 +224,7 @@ class OpenPypeMongoConnection:
"serverSelectionTimeoutMS": timeout
}
if should_add_certificate_path_to_mongo_url(mongo_url):
kwargs["ssl_ca_certs"] = certifi.where()
kwargs["tlsCAFile"] = certifi.where()
mongo_client = pymongo.MongoClient(mongo_url, **kwargs)