fix: remove orphaned else block causing SyntaxError in client.py
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 11s
Integration Tests / test-service-integration (push) Successful in 2m47s
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled

The else block at line 250 was orphaned (no corresponding if), causing
a SyntaxError during coordinator-api startup. Removed the invalid else block.
This commit is contained in:
aitbc
2026-04-25 08:18:48 +02:00
parent 39070869a8
commit 7b7405a388

View File

@@ -247,15 +247,6 @@ async def get_blocks(
"offset": offset, "offset": offset,
"error": "Failed to fetch blocks", "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: except Exception as e:
return {"blocks": [], "total": 0, "limit": limit, "offset": offset, "error": "Failed to fetch blocks"} return {"blocks": [], "total": 0, "limit": limit, "offset": offset, "error": "Failed to fetch blocks"}