Skip to content

Commit 88b87ad

Browse files
Neeratyoymfeurer
authored andcommitted
Adding NoneType check for evaluations in runs (#738)
1 parent 347c4a6 commit 88b87ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openml/runs/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __str__(self):
8989
fields["Uploader Profile"] = "{}u/{}".format(base_url, self.uploader)
9090
if self.run_id is not None:
9191
fields["Run URL"] = "{}r/{}".format(base_url, self.run_id)
92-
if self.task_evaluation_measure in self.evaluations:
92+
if self.evaluations is not None and self.task_evaluation_measure in self.evaluations:
9393
fields["Result"] = self.evaluations[self.task_evaluation_measure]
9494

9595
# determines the order in which the information will be printed

0 commit comments

Comments
 (0)