INNER CODE UNIT · Python

docker_exception_handler

Quenary/tugtainer · agent/app.py:48

async def docker_exception_handler(
    request: Request,
    exc: DockerException,
):
    detail = "Docker Exception"
    if exc.stdout:
        detail += f"\nstdout: {exc.stdout}"
    if exc.stderr:
        detail += f"\nstderr: {exc.stderr}"
    raise HTTPException(status.HTTP_424_FAILED_DEPENDENCY, detail)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…