Skip to content

Commit 3d5af2c

Browse files
authored
return None for model artifact id if no results.model (#287)
1 parent 4d345ac commit 3d5af2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polaris/evaluate/_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ResultsMetadataV2(BaseArtifactModel):
5555
@computed_field
5656
@property
5757
def model_artifact_id(self) -> str:
58-
return self.model.artifact_id
58+
return self.model.artifact_id if self.model else None
5959

6060
def _repr_html_(self) -> str:
6161
return dict2html(self.model_dump())

0 commit comments

Comments
 (0)