update
This commit is contained in:
@@ -74,8 +74,10 @@ async def feature_anlegen(name: str, body: dict):
|
||||
async def feature_speichern(name: str, id: str, body: dict):
|
||||
try:
|
||||
return features.speichern(name, id, body.get("roh") or "")
|
||||
except (FileNotFoundError, ValueError) as e:
|
||||
except FileNotFoundError as e:
|
||||
raise HTTPException(404, str(e))
|
||||
except ValueError as e:
|
||||
raise HTTPException(400, str(e))
|
||||
|
||||
|
||||
@router.delete("/projekte/{name}/features/{id}")
|
||||
|
||||
Reference in New Issue
Block a user