fix: remove orphaned else block causing SyntaxError in client.py
Some checks failed
Some checks failed
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:
@@ -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"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user