From 354b00a7b4e0c0d975734953b0f82b13dd5fa2b7 Mon Sep 17 00:00:00 2001 From: Litchi Pi Date: Thu, 24 Jul 2025 11:29:07 +0200 Subject: [PATCH] fixup Signed-off-by: Litchi Pi --- mealie/routes/recipe/recipe_crud_routes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mealie/routes/recipe/recipe_crud_routes.py b/mealie/routes/recipe/recipe_crud_routes.py index bdf9cf6ab..d06f77d9f 100644 --- a/mealie/routes/recipe/recipe_crud_routes.py +++ b/mealie/routes/recipe/recipe_crud_routes.py @@ -85,10 +85,11 @@ class RecipeController(BaseRecipeController): self.logger.error("No Entry Found on recipe controller action") raise HTTPException(status_code=404, detail=ErrorResponse.respond(message="No Entry Found")) elif thrownType == exceptions.IncompleteData: - self.logger.error("Incomplete data provided to API route:", ex.missing) + missing = ex.__context__["missing"] + self.logger.error("Incomplete data provided to API route:", missing) raise HTTPException( status_code=400, - detail=ErrorResponse.respond(message=f"Field '{ex.missing}' missing on the body of this API request"), + detail=ErrorResponse.respond(message=f"Field '{missing}' missing on the body of this API request"), ) elif thrownType == sqlalchemy.exc.IntegrityError: self.logger.error("SQL Integrity Error on recipe controller action")