We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9727f48 commit e604106Copy full SHA for e604106
1 file changed
src/a2a/server/request_handlers/jsonrpc_handler.py
@@ -400,11 +400,9 @@ async def list_tasks(
400
"""
401
try:
402
result = await self.request_handler.on_list_tasks(request, context)
403
- except ServerError:
404
- return ListTasksResponse(
405
- # This needs to be appropriately handled since error fields on proto messages
406
- # might be different from the old pydantic models
407
- # Ignoring proto error handling for now as it diverges from the current pattern
+ except ServerError as e:
+ return _build_error_response(
+ request_id, e.error if e.error else InternalError()
408
)
409
return result
410
0 commit comments