Skip to content

Commit 68ce59b

Browse files
Update src/a2a/server/apps/rest/rest_app.py
Looks like a merge failure Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent d1d9e49 commit 68ce59b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/a2a/server/apps/rest/rest_app.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,6 @@ async def event_generator(
130130
async for item in stream:
131131
yield {'data': item}
132132

133-
return EventSourceResponse(
134-
event_generator(method(request, call_context))
135-
)
136-
except Exception:
137-
# Since the stream has started, we can't return a JSONResponse.
138-
# Instead, we run the error handling logic (provides logging)
139133
return EventSourceResponse(
140134
event_generator(method(request, call_context))
141135
)

0 commit comments

Comments
 (0)