test(api): gated-project member-read positive path; guard config_json parse

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ben Stull
2026-06-03 23:44:51 -07:00
parent 07e003e5fc
commit e8ce3cd228
2 changed files with 23 additions and 1 deletions
+4 -1
View File
@@ -54,7 +54,10 @@ def make_router() -> APIRouter:
).fetchone()
if row is None:
raise HTTPException(status_code=404, detail="Not found")
cfg = json.loads(row["config_json"] or "{}")
try:
cfg = json.loads(row["config_json"] or "{}")
except (ValueError, TypeError):
cfg = {}
dep = db.conn().execute("SELECT tagline FROM deployment WHERE id = 1").fetchone()
return {
"id": row["id"],