We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83253d2 commit c01a52aCopy full SHA for c01a52a
src/api/api.py
@@ -255,7 +255,11 @@ async def update_zone(zone_id: int, update: UpdateZone):
255
)
256
257
return zone
258
-
+ except ValidationError:
259
+ raise HTTPException(
260
+ status_code=status.HTTP_422_UNPROCESSABLE_CONTENT,
261
+ detail=f"One or multiple validation errors in\n{update}"
262
+ )
263
except HTTPException:
264
raise
265
except Exception as e:
0 commit comments