From 7b7405a38829ded6d65d4ec20e6ec8ff850a4597 Mon Sep 17 00:00:00 2001 From: aitbc Date: Sat, 25 Apr 2026 08:18:48 +0200 Subject: [PATCH] fix: remove orphaned else block causing SyntaxError in client.py The else block at line 250 was orphaned (no corresponding if), causing a SyntaxError during coordinator-api startup. Removed the invalid else block. --- apps/coordinator-api/src/app/routers/client.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/apps/coordinator-api/src/app/routers/client.py b/apps/coordinator-api/src/app/routers/client.py index 3b8683cd..c81f65c2 100755 --- a/apps/coordinator-api/src/app/routers/client.py +++ b/apps/coordinator-api/src/app/routers/client.py @@ -247,15 +247,6 @@ async def get_blocks( "offset": offset, "error": "Failed to fetch blocks", } - else: - # Fallback to empty response if blockchain node is unavailable - return { - "blocks": [], - "total": 0, - "limit": limit, - "offset": offset, - "error": f"Blockchain node unavailable: {response.status_code}", - } except Exception as e: return {"blocks": [], "total": 0, "limit": limit, "offset": offset, "error": "Failed to fetch blocks"}