Spaces:
Runtime error
Runtime error
Commit
·
a7f3790
1
Parent(s):
c2da054
Update execution.py
Browse files- execution.py +5 -0
execution.py
CHANGED
|
@@ -54,6 +54,11 @@ def safe_execute(
|
|
| 54 |
except subprocess.TimeoutExpired:
|
| 55 |
timed_out = True
|
| 56 |
runtime = timeout
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
finally:
|
| 58 |
execution_process.kill()
|
| 59 |
|
|
|
|
| 54 |
except subprocess.TimeoutExpired:
|
| 55 |
timed_out = True
|
| 56 |
runtime = timeout
|
| 57 |
+
|
| 58 |
+
except Exception as e:
|
| 59 |
+
stderr = str(e)
|
| 60 |
+
stdout = ""
|
| 61 |
+
return_code = -1
|
| 62 |
finally:
|
| 63 |
execution_process.kill()
|
| 64 |
|