guydav commited on
Commit
1f0b3da
·
1 Parent(s): 597b02f

Experimenting with how I return results

Browse files
Files changed (1) hide show
  1. restrictedpython_code_eval.py +1 -1
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['output_variable'] = additional_locals[output_variable] # type: ignore
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