Skip to content

Commit

Permalink
adding merge capability in ingester for partial metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed May 26, 2024
1 parent 3a6614d commit d7ff65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcicutils/structured_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def _merge_with_existing_portal_object(self, portal_object: dict, portal_type: s
just returns the given object. Note that the given object may be CHANGED in place.
"""
for identifying_path in self._portal.get_identifying_paths(portal_object, portal_type):
if existing_portal_object := self._portal.get_metadata(identifying_path, raw=True):
if existing_portal_object := self._portal.get_metadata(identifying_path, raw=True, raise_exception=False):
return merge_objects(existing_portal_object, portal_object)
return portal_object

Expand Down

0 comments on commit d7ff65c

Please sign in to comment.