guydav commited on
Commit
84e13f9
·
1 Parent(s): f13942b

Slight change to handling empty outputs

Browse files
Files changed (1) hide show
  1. restrictedpython_code_eval.py +1 -1
restrictedpython_code_eval.py CHANGED
@@ -349,7 +349,7 @@ def _check_correctness(check_program, timeout, task_id, completion_id,
349
 
350
 
351
  if not result:
352
- result.append("timed out")
353
 
354
  return dict(
355
  task_id=task_id,
 
349
 
350
 
351
  if not result:
352
+ result.append("Result evaluates to False (empty?)")
353
 
354
  return dict(
355
  task_id=task_id,