Spaces:
Runtime error
Runtime error
gabeorlanski
commited on
Commit
•
4ac5d46
1
Parent(s):
0fb6838
Update execution.py
Browse files- execution.py +6 -6
execution.py
CHANGED
@@ -37,13 +37,13 @@ def safe_execute(
|
|
37 |
stderr = None
|
38 |
stdout = None
|
39 |
start_time = datetime.datetime.now()
|
40 |
-
execution_process = subprocess.Popen(
|
41 |
-
command_to_run,
|
42 |
-
cwd=str(working_dir),
|
43 |
-
stdout=subprocess.PIPE,
|
44 |
-
stderr=subprocess.PIPE,
|
45 |
-
)
|
46 |
try:
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
outputs = execution_process.communicate(timeout=timeout)
|
48 |
|
49 |
stdout, stderr = outputs
|
|
|
37 |
stderr = None
|
38 |
stdout = None
|
39 |
start_time = datetime.datetime.now()
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
try:
|
41 |
+
execution_process = subprocess.Popen(
|
42 |
+
command_to_run,
|
43 |
+
cwd=str(working_dir),
|
44 |
+
stdout=subprocess.PIPE,
|
45 |
+
stderr=subprocess.PIPE,
|
46 |
+
)
|
47 |
outputs = execution_process.communicate(timeout=timeout)
|
48 |
|
49 |
stdout, stderr = outputs
|