Spaces:
Sleeping
Sleeping
Experimenting with how I return results
Browse files
restrictedpython_code_eval.py
CHANGED
|
@@ -624,7 +624,7 @@ def _unsafe_execute(check_program, result, timeout,
|
|
| 624 |
result['exception'] = e
|
| 625 |
|
| 626 |
if return_output and output_variable in additional_locals: # type: ignore
|
| 627 |
-
result[
|
| 628 |
|
| 629 |
# Needed for cleaning up.
|
| 630 |
shutil.rmtree = rmtree
|
|
|
|
| 624 |
result['exception'] = e
|
| 625 |
|
| 626 |
if return_output and output_variable in additional_locals: # type: ignore
|
| 627 |
+
result[output_variable] = additional_locals[output_variable] # type: ignore
|
| 628 |
|
| 629 |
# Needed for cleaning up.
|
| 630 |
shutil.rmtree = rmtree
|