Changed errors to new type, was causing warnings

This commit is contained in:
UmmmAGoodName committed 2026-03-11 18:48:36 +01:00
1 parent 69eafda777
commit 4a45a68703
5 files changed
+13 -13

No files matched your search

+1 -1
View File
@@ -207,7 +207,7 @@ async def sqlalchemy_error_handler(request: Request, exc: SQLAlchemyError):
async def validation_exception_handler(request: Request, exc: RequestValidationError):
log.error(f"Request validation error in {request.url.path} ({request.method}): {exc}")
return JSONResponse(
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
content={"message": str(exc)}
)