Skip to content

Commit

Permalink
fix(backend): validation_exception_handler pass all required params
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed May 22, 2024
1 parent 68c50d1 commit 9e9fcc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 9e9fcc7

Please sign in to comment.