fix: harden realtime pipeline lifecycle
This commit is contained in:
@@ -145,7 +145,10 @@ async def http_offer(request: Request, payload: dict = Body(...)):
|
||||
# Client capabilities have one canonical transport: the request header.
|
||||
"client_tool_names": client_tool_names,
|
||||
}
|
||||
answer = await _handle_offer_payload(offer_payload, _http_peers)
|
||||
try:
|
||||
answer = await _handle_offer_payload(offer_payload, _http_peers)
|
||||
except ValueError as exc:
|
||||
raise HTTPException(status_code=400, detail=str(exc)) from exc
|
||||
return answer
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user