Signed-off-by: Litchi Pi <litchi.pi@proton.me>
This commit is contained in:
Litchi Pi 2025-07-24 12:21:14 +02:00
commit 8ea589b7b5

View file

@ -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,