anatomy handler can handle not existing projects

This commit is contained in:
iLLiCiTiT 2021-03-30 17:05:19 +02:00
parent 302a00c9c9
commit 7a45a1a0e7

View file

@ -610,6 +610,9 @@ class MongoSettingsHandler(SettingsHandler):
Probably should fill missing keys and values.
"""
if not project_doc:
return {}
attributes = {}
project_doc_data = project_doc.get("data") or {}
for key in self.attribute_keys: