diff --git a/mealie/routes/recipe/recipe_crud_routes.py b/mealie/routes/recipe/recipe_crud_routes.py index fb4bde287..81b639252 100644 --- a/mealie/routes/recipe/recipe_crud_routes.py +++ b/mealie/routes/recipe/recipe_crud_routes.py @@ -85,7 +85,8 @@ 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: - missing = ex.missing + assert isinstance(ex.__context__, exceptions.IncompleteData) + missing = ex.__context__.missing self.logger.error("Incomplete data provided to API route:", missing) raise HTTPException( status_code=400,