<type>(scope): <description>

[body]

[footer(s)]
This commit is contained in:
ITQ
2025-03-03 10:54:28 +03:00
parent f2863d89bb
commit 07ec22881e
+6 -7
View File
@@ -1,4 +1,3 @@
import docker.errors
from fastapi import FastAPI, HTTPException, status from fastapi import FastAPI, HTTPException, status
from pydantic import BaseModel, Field, HttpUrl from pydantic import BaseModel, Field, HttpUrl
import aiohttp import aiohttp
@@ -158,12 +157,12 @@ def run_container_safely(
"stderr": f"Container error: {str(e)}", "stderr": f"Container error: {str(e)}",
"status": -1, "status": -1,
} }
# finally: finally:
# if container: if container:
# try: try:
# container.remove(force=True) container.remove(force=True)
# except docker.errors.DockerException: except docker.errors.DockerException:
# pass pass
def validate_file_path(path: str) -> bool: def validate_file_path(path: str) -> bool: