Spaces:
Sleeping
Sleeping
Muennighoff
commited on
Commit
·
0406cd0
1
Parent(s):
116e267
Fix bug
Browse files- execute.py +1 -1
execute.py
CHANGED
@@ -223,7 +223,7 @@ def unsafe_execute_js(check_program, result, timeout):
|
|
223 |
|
224 |
# Run program.
|
225 |
try:
|
226 |
-
exec_result = ["node", "test.js"], timeout=timeout, capture_output=True)
|
227 |
if exec_result.stderr.decode():
|
228 |
err = exec_result.stderr.decode()
|
229 |
result.append(f"failed: {err}")
|
|
|
223 |
|
224 |
# Run program.
|
225 |
try:
|
226 |
+
exec_result = subprocess.run(["node", "test.js"], timeout=timeout, capture_output=True)
|
227 |
if exec_result.stderr.decode():
|
228 |
err = exec_result.stderr.decode()
|
229 |
result.append(f"failed: {err}")
|