Skip to content

Commit

Permalink
Merge pull request #515 from materialsproject/patch_memory_store
Browse files Browse the repository at this point in the history
Patch memory store connect method
  • Loading branch information
Jason Munro authored Dec 1, 2021
2 parents 5a0f33b + 8d23f16 commit f8a3e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maggma/stores/mongolike.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def connect(self, force_reset: bool = False):
"""
Connect to the source data
"""
if not self._collection or force_reset: # pragma: no cover
if self._collection is None or force_reset: # pragma: no cover
conn = MongoClient(self.uri)
db = conn[self.database]
self._collection = db[self.collection_name]
Expand Down

0 comments on commit f8a3e67

Please sign in to comment.