Skip to content

Commit aba2586

Browse files
[ENH] improved simple assertion error message in evalutation/functions.py (#1600)
#### Details fixed a simple assertion error message in `evalutation/functions.py`
1 parent 5b85b77 commit aba2586

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)