Skip to content

Commit 0eae11f

Browse files
xingluluzai
authored andcommitted
apply gemini advice on exception
1 parent 6719cc5 commit 0eae11f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

areal/reward/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def verify(self, response: str, ground_truth: str) -> float:
9393
try:
9494
ret_score, _ = self.verify_func([ground_truth], [response])
9595
return float(ret_score)
96-
except Exception as e:
96+
except (Exception, TimeoutException) as e: # TimeoutException inherits from BaseException
9797
logger.warning(
9898
f"Exception {e} in MathVerifyWorker.verify for response={response} and ground_truth={ground_truth}",
9999
exc_info=True,

0 commit comments

Comments
 (0)