Skip to content

Commit c30717e

Browse files
fix: address ruff lint (import order, B904 exception chaining)
1 parent ccf971c commit c30717e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/a2a/server/request_handlers/rest_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from collections.abc import AsyncIterable, AsyncIterator
44
from typing import TYPE_CHECKING, Any
55

6-
from pydantic import ValidationError
76
from google.protobuf.json_format import MessageToDict, MessageToJson, Parse
7+
from pydantic import ValidationError
88

99

1010
if TYPE_CHECKING:
@@ -267,7 +267,7 @@ async def on_get_task(
267267
except ValidationError:
268268
raise ServerError(
269269
error=InvalidParamsError(message='historyLength must be a valid integer')
270-
)
270+
) from None
271271
task = await self.request_handler.on_get_task(params, context)
272272
if task:
273273
return MessageToDict(proto_utils.ToProto.task(task))

0 commit comments

Comments
 (0)