[eric] agents: drop the unreachable 504 branch; the manager already swallows an aux timeout and returns a fallback group meta

This commit is contained in:
ciregenz
2026-08-11 11:04:33 -07:00
parent d216bb7f24
commit 2a3440ae8e
-6
View File
@@ -268,12 +268,6 @@ async def generate_group_meta(session_id: str, body: dict):
if not future.done():
future.set_result(result)
return result
except asyncio.TimeoutError as e:
# A raw TimeoutError would bubble past the CORS layer as a headerless 500, which the
# renderer console mislabels as a CORS violation; a 504 keeps the failure legible.
if not future.done():
future.set_exception(e)
raise HTTPException(status_code=504, detail="metadata generation timed out") from e
except Exception as e:
if not future.done():
future.set_exception(e)