Spaces:
Sleeping
Sleeping
Experimenting with how I return results
Browse files
restrictedpython_code_eval.py
CHANGED
@@ -458,8 +458,8 @@ def _check_correctness(check_program, timeout, task_id, completion_id,
|
|
458 |
completion_id=completion_id,
|
459 |
)
|
460 |
|
461 |
-
if '
|
462 |
-
exc = result[
|
463 |
out_dict["exception_type"] = type(exc).__name__
|
464 |
out_dict["exception_description"] = str(exc)
|
465 |
|
|
|
458 |
completion_id=completion_id,
|
459 |
)
|
460 |
|
461 |
+
if 'exception' in result:
|
462 |
+
exc = result['exception']
|
463 |
out_dict["exception_type"] = type(exc).__name__
|
464 |
out_dict["exception_description"] = str(exc)
|
465 |
|