From 4a2337f4dea00fee11222e7a4749dd19d4d91c4c Mon Sep 17 00:00:00 2001 From: stroblme Date: Tue, 25 Aug 2026 21:36:02 +0200 Subject: [PATCH] Drop the unreachable 404 from save_dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit write_draft creates a first draft for a name that does not exist yet, so it raises only StaleVersion — the DashboardNotFound arm never ran. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_013Gf7WaExcJ9bs3kfJXB3nK --- backend/fluksio/api/routes/dashboards.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/fluksio/api/routes/dashboards.py b/backend/fluksio/api/routes/dashboards.py index 142e912..b4f9a2e 100644 --- a/backend/fluksio/api/routes/dashboards.py +++ b/backend/fluksio/api/routes/dashboards.py @@ -125,8 +125,6 @@ async def save_dashboard( raise HTTPException(status_code=422, detail="The name in the body must match") try: saved = await run_in_threadpool(store.write_draft, body, body.version) - except DashboardNotFound: - raise HTTPException(status_code=404, detail=f"No dashboard named '{name}'") except StaleVersion as exc: raise HTTPException( status_code=409,