mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added session check to ftrack mongo connection
This commit is contained in:
parent
be191b0c93
commit
d684cac9bf
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ def check_mongo_url(mongo_uri, log_error=False):
|
|||
# Force connection on a request as the connect=True parameter of
|
||||
# MongoClient seems to be useless here
|
||||
client.server_info()
|
||||
with client.start_session():
|
||||
pass
|
||||
client.close()
|
||||
except pymongo.errors.ServerSelectionTimeoutError as err:
|
||||
if log_error:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue