This commit is contained in:
team3
2026-07-27 11:29:57 +02:00
parent 15ad6dfe8a
commit 1c8a4fd4fd
30 changed files with 1133 additions and 173 deletions

View File

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