moved time start out of loop

This commit is contained in:
iLLiCiTiT 2021-10-01 18:26:51 +02:00
parent 0c00a50417
commit 3448e1ce78

View file

@ -209,9 +209,9 @@ class OpenPypeMongoConnection:
elif not retry_attempts:
retry_attempts = 1
t1 = time.time()
for _retry in range(retry_attempts):
try:
t1 = time.time()
mongo_client.server_info()
except Exception: