From b5d28cddff1437d2993e0034ca1fd222b47d0d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20B=C3=B6ther?= Date: Fri, 20 Sep 2024 16:24:54 +0200 Subject: [PATCH] minor --- modyn/supervisor/internal/grpc_handler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modyn/supervisor/internal/grpc_handler.py b/modyn/supervisor/internal/grpc_handler.py index 44b7da2b2..a5544ba25 100644 --- a/modyn/supervisor/internal/grpc_handler.py +++ b/modyn/supervisor/internal/grpc_handler.py @@ -344,8 +344,10 @@ def get_evaluation_results(self, evaluation_id: int) -> list[EvaluationIntervalD raise e if not res.valid: - logger.error(f"Cannot get the evaluation result for evaluation {evaluation_id}") - raise RuntimeError(f"Cannot get the evaluation result for evaluation {evaluation_id}") + _msg = f"Cannot get the evaluation result for evaluation {evaluation_id}" + logger.error(_msg) + raise RuntimeError(_msg) + return res.evaluation_results def cleanup_evaluations(self, evaluation_ids: list[int]) -> None: