Skip to content

Commit 35d50a9

Browse files
committed
Fixed mark override logic in is_correct evaluation to handle None values.
1 parent e94bc7d commit 35d50a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def _run_evaluation(response: Any, answer: Any, params: Dict) -> Dict:
118118

119119
# Override is_correct provided by the
120120
# original block by the case 'mark'
121-
if "mark" in match:
121+
if "mark" in match and match["mark"] is not None:
122122
result["is_correct"] = bool(int(match["mark"]))
123123

124124
return result

0 commit comments

Comments
 (0)