Skip to content

Commit

Permalink
Update operations.py
Browse files Browse the repository at this point in the history
Fix logging in case of an exceptions
  • Loading branch information
mki-c2c authored Feb 14, 2025
1 parent ab11dd4 commit 3be9aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/maelstro/core/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3be9aeb

Please sign in to comment.