Skip to content

Commit 1e9f78a

Browse files
author
Dylan Huang
committed
no need to try/except
1 parent 3aba886 commit 1e9f78a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/pytest/test_pytest_function_calling.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,7 @@ def function_calling_to_evaluation_row(rows: List[Dict[str, Any]]) -> List[Evalu
2626
)
2727
async def test_pytest_function_calling(row: EvaluationRow) -> EvaluationRow:
2828
"""Run pointwise evaluation on sample dataset using pytest interface."""
29-
try:
30-
ground_truth = json.loads(row.ground_truth)
31-
except Exception as e:
32-
print(f"Error loading ground truth: {e}")
33-
ground_truth = None
29+
ground_truth = json.loads(row.ground_truth)
3430
result = exact_tool_match_reward(row.messages, ground_truth)
3531
row.evaluation_result = result
3632
print(result)

0 commit comments

Comments
 (0)