mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 00:27:11 +00:00
<type>(scope): <description>
[body] [footer(s)]
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import docker.errors
|
||||
from fastapi import FastAPI, HTTPException, status
|
||||
from pydantic import BaseModel, Field, HttpUrl
|
||||
import aiohttp
|
||||
@@ -158,12 +157,12 @@ def run_container_safely(
|
||||
"stderr": f"Container error: {str(e)}",
|
||||
"status": -1,
|
||||
}
|
||||
# finally:
|
||||
# if container:
|
||||
# try:
|
||||
# container.remove(force=True)
|
||||
# except docker.errors.DockerException:
|
||||
# pass
|
||||
finally:
|
||||
if container:
|
||||
try:
|
||||
container.remove(force=True)
|
||||
except docker.errors.DockerException:
|
||||
pass
|
||||
|
||||
|
||||
def validate_file_path(path: str) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user