Skip to content

Commit

Permalink
Update conftrak/server/engine.py
Browse files Browse the repository at this point in the history
Co-authored-by: Garrett Bischof <[email protected]>
  • Loading branch information
JunAishima and gwbischof authored Mar 7, 2024
1 parent bb4d1e3 commit b5a84e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conftrak/server/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def db_connect(database, mongo_uri, testing=False):
else:
try:
client = pymongo.MongoClient(mongo_uri)
client.server_info() # check if the server is really okay.
# Proactively check that connection to server is working.
client.server_info()
except (
pymongo.errors.ConnectionFailure,
pymongo.errors.ServerSelectionTimeoutError,
Expand Down

0 comments on commit b5a84e9

Please sign in to comment.