diff --git a/openml/evaluations/functions.py b/openml/evaluations/functions.py index 0b9f190b4..ba3c55550 100644 --- a/openml/evaluations/functions.py +++ b/openml/evaluations/functions.py @@ -231,9 +231,10 @@ def __list_evaluations(api_call: str) -> list[OpenMLEvaluation]: f'Error in return XML, does not contain "oml:evaluations": {evals_dict!s}', ) - assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), type( - evals_dict["oml:evaluations"], + assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), ( + "Expected 'oml:evaluation' to be a list, but got" ) + f"{type(evals_dict['oml:evaluations']['oml:evaluation']).__name__}. " uploader_ids = list( {eval_["oml:uploader"] for eval_ in evals_dict["oml:evaluations"]["oml:evaluation"]},