From 4bbf4d47fa27b30db7d8a54f4d5b45a2259131ed Mon Sep 17 00:00:00 2001 From: "Michael.Schmatz" Date: Fri, 20 Sep 2024 12:30:18 +0000 Subject: [PATCH] Preserve exception information --- src/inspect_ai/log/_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inspect_ai/log/_file.py b/src/inspect_ai/log/_file.py index d5c60edc8..3a211fbfb 100644 --- a/src/inspect_ai/log/_file.py +++ b/src/inspect_ai/log/_file.py @@ -248,7 +248,7 @@ def read_eval_log(log_file: str | FileInfo, header_only: bool = False) -> EvalLo ): pass else: - raise ValueError(f"Unable to read log file: {log_file}: {ex}") + raise ValueError(f"Unable to read log file: {log_file}") from ex # parse full log (also used as a fallback for header_only encountering NaN or Inf) with file(log_file, "r") as f: