mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
anatomy handler can handle not existing projects
This commit is contained in:
parent
302a00c9c9
commit
7a45a1a0e7
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue