Skip to content

Commit 965f689

Browse files
committed
default name for artifacts missing name
1 parent 95dcb4e commit 965f689

File tree

1 file changed

+1
-1
lines changed
  • tests/model_registry/model_catalog

1 file changed

+1
-1
lines changed

tests/model_registry/model_catalog/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ def validate_model_artifacts_match_criteria_and(
10401040
bool: True if at least one artifact satisfies all validation criteria, False otherwise
10411041
"""
10421042
for artifact in all_model_artifacts:
1043-
artifact_name = artifact.get("name")
1043+
artifact_name = artifact.get("name", "missing_artifact_name")
10441044
custom_properties = artifact["customProperties"]
10451045
validation_results = []
10461046
conditions_passed = 0

0 commit comments

Comments
 (0)