update
This commit is contained in:
@@ -3,6 +3,7 @@ hier wird auf 400/404/409 gemappt."""
|
||||
|
||||
from fastapi import APIRouter, HTTPException
|
||||
|
||||
import agents
|
||||
import features
|
||||
import projekte
|
||||
import pruefung
|
||||
@@ -87,6 +88,8 @@ async def pruefung_starten(name: str):
|
||||
return await pruefung.starte(name)
|
||||
except FileNotFoundError as e:
|
||||
raise HTTPException(404, str(e))
|
||||
except agents.NichtKonfiguriert as e:
|
||||
raise HTTPException(400, str(e)) # 409 heißt „läuft bereits" — hier fehlt die .env
|
||||
except ValueError as e:
|
||||
raise HTTPException(409, str(e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user