From 3be9aeb06602c70a6214835c049a8fd040307410 Mon Sep 17 00:00:00 2001 From: Moritz Kirmse <61978301+mki-c2c@users.noreply.github.com> Date: Fri, 14 Feb 2025 11:17:29 +0100 Subject: [PATCH] Update operations.py Fix logging in case of an exceptions --- backend/maelstro/core/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/maelstro/core/operations.py b/backend/maelstro/core/operations.py index 0a0bdde..3d3673f 100644 --- a/backend/maelstro/core/operations.py +++ b/backend/maelstro/core/operations.py @@ -14,7 +14,7 @@ def setup_exception_handlers(app: FastAPI) -> None: @app.exception_handler(HTTPException) async def handle_fastapi_exception(request: Request, err: HTTPException) -> Any: - if "/copy/" in str(request.url): + if "/copy" in str(request.url): log_request_to_db( err.status_code, request,