From 9e9fcc780cc11a417643fe7283fbc77a9038954c Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 22 May 2024 15:28:40 +0100 Subject: [PATCH] fix(backend): validation_exception_handler pass all required params --- src/backend/app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/app/main.py b/src/backend/app/main.py index 58c95f04d8..2531477fd6 100644 --- a/src/backend/app/main.py +++ b/src/backend/app/main.py @@ -23,7 +23,7 @@ from contextlib import asynccontextmanager from pathlib import Path -from fastapi import Depends, FastAPI +from fastapi import Depends, FastAPI, Request from fastapi.exceptions import RequestValidationError from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import JSONResponse, RedirectResponse, Response @@ -196,7 +196,7 @@ def get_logger(): @api.exception_handler(RequestValidationError) async def validation_exception_handler( - # request: Request, + request: Request, # dead: disable exc: RequestValidationError, ): """Exception handler for more descriptive logging and traces."""