Skip to content

Commit 589a37a

Browse files
committed
Update custodian version in requirements; fix bug based on pymongo 4.0
1 parent bf45ba3 commit 589a37a

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

atomate/utils/database.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,7 @@ def __init__(
107107
except Exception:
108108
logger.error("Mongodb connection failed")
109109
raise Exception
110-
try:
111-
if self.user:
112-
self.db.authenticate(
113-
self.user, self.password, source=kwargs.get("authsource", None)
114-
)
115-
except Exception:
116-
logger.error("Mongodb authentication failed")
117-
raise ValueError
110+
118111
self.collection = self.db[collection]
119112

120113
# set counter collection

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
custodian==2021.2.8
1+
custodian==2022.1.17
22
FireWorks==1.9.7
33
maggma==0.29.2
44
monty==2021.6.10

0 commit comments

Comments
 (0)