mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
fixup
Signed-off-by: Litchi Pi <litchi.pi@proton.me>
This commit is contained in:
parent
e76e820d37
commit
8ea589b7b5
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ class RecipeController(BaseRecipeController):
|
||||||
self.logger.error("No Entry Found on recipe controller action")
|
self.logger.error("No Entry Found on recipe controller action")
|
||||||
raise HTTPException(status_code=404, detail=ErrorResponse.respond(message="No Entry Found"))
|
raise HTTPException(status_code=404, detail=ErrorResponse.respond(message="No Entry Found"))
|
||||||
elif thrownType == exceptions.IncompleteData:
|
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)
|
self.logger.error("Incomplete data provided to API route:", missing)
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=400,
|
status_code=400,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue