Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/a2a/server/request_handlers/jsonrpc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,9 @@
"""
try:
result = await self.request_handler.on_list_tasks(request, context)
except ServerError:
return ListTasksResponse(
# This needs to be appropriately handled since error fields on proto messages
# might be different from the old pydantic models
# Ignoring proto error handling for now as it diverges from the current pattern
except ServerError as e:
return _build_error_response(

Check failure on line 404 in src/a2a/server/request_handlers/jsonrpc_handler.py

View workflow job for this annotation

GitHub Actions / Lint Code Base

Type "dict[str, Any]" is not assignable to return type "ListTasksResponse"   "dict[str, Any]" is not assignable to "ListTasksResponse" (reportReturnType)
request_id, e.error if e.error else InternalError()

Check failure on line 405 in src/a2a/server/request_handlers/jsonrpc_handler.py

View workflow job for this annotation

GitHub Actions / Lint Code Base

"request_id" is not defined (reportUndefinedVariable)

Check failure on line 405 in src/a2a/server/request_handlers/jsonrpc_handler.py

View workflow job for this annotation

GitHub Actions / Lint Code Base

ruff (F821)

src/a2a/server/request_handlers/jsonrpc_handler.py:405:17: F821 Undefined name `request_id`
)
Comment thread
ishymko marked this conversation as resolved.
return result

Expand Down
Loading