We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccf971c commit c30717eCopy full SHA for c30717e
src/a2a/server/request_handlers/rest_handler.py
@@ -3,8 +3,8 @@
3
from collections.abc import AsyncIterable, AsyncIterator
4
from typing import TYPE_CHECKING, Any
5
6
-from pydantic import ValidationError
7
from google.protobuf.json_format import MessageToDict, MessageToJson, Parse
+from pydantic import ValidationError
8
9
10
if TYPE_CHECKING:
@@ -267,7 +267,7 @@ async def on_get_task(
267
except ValidationError:
268
raise ServerError(
269
error=InvalidParamsError(message='historyLength must be a valid integer')
270
- )
+ ) from None
271
task = await self.request_handler.on_get_task(params, context)
272
if task:
273
return MessageToDict(proto_utils.ToProto.task(task))
0 commit comments