Skip to content

Commit

Permalink
Preserve exception information
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmatzAISI committed Sep 20, 2024
1 parent 33c16ca commit 4bbf4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inspect_ai/log/_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4bbf4d4

Please sign in to comment.