Skip to content

Commit bac06ee

Browse files
authored
Merge branch 'main' into dataclass_impl_openmlparameter
2 parents 72dd88b + aba2586 commit bac06ee

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

openml/evaluations/functions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,9 @@ def __list_evaluations(api_call: str) -> list[OpenMLEvaluation]:
231231
f'Error in return XML, does not contain "oml:evaluations": {evals_dict!s}',
232232
)
233233

234-
assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), type(
235-
evals_dict["oml:evaluations"],
234+
assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), (
235+
"Expected 'oml:evaluation' to be a list, but got"
236+
f"{type(evals_dict['oml:evaluations']['oml:evaluation']).__name__}. "
236237
)
237238

238239
uploader_ids = list(

0 commit comments

Comments
 (0)