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: