From b12575b6aaa1f6fa96e18d23b98004b76e1a7662 Mon Sep 17 00:00:00 2001 From: Eman Abdelhaleem Date: Tue, 6 Jan 2026 11:12:36 +0200 Subject: [PATCH 1/2] a slight fix to an asserion error message --- openml/evaluations/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openml/evaluations/functions.py b/openml/evaluations/functions.py index 7747294d7..273551a00 100644 --- a/openml/evaluations/functions.py +++ b/openml/evaluations/functions.py @@ -232,7 +232,7 @@ def __list_evaluations(api_call: str) -> list[OpenMLEvaluation]: ) assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), type( - evals_dict["oml:evaluations"], + evals_dict["oml:evaluations"]["oml:evaluation"], ) uploader_ids = list( From c2465095186b1a1983c88ea25b2e72ee9bfed75d Mon Sep 17 00:00:00 2001 From: Eman Abdelhaleem Date: Tue, 13 Jan 2026 12:49:38 +0200 Subject: [PATCH 2/2] update assertion message --- openml/evaluations/functions.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openml/evaluations/functions.py b/openml/evaluations/functions.py index 273551a00..2534bb230 100644 --- a/openml/evaluations/functions.py +++ b/openml/evaluations/functions.py @@ -231,9 +231,10 @@ def __list_evaluations(api_call: str) -> list[OpenMLEvaluation]: "Error in return XML, does not contain " f'"oml:evaluations": {evals_dict!s}', ) - assert isinstance(evals_dict["oml:evaluations"]["oml:evaluation"], list), type( - evals_dict["oml:evaluations"]["oml:evaluation"], - ) + 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"]},