Skip to content

Commit 4835a42

Browse files
fix: address ruff lint (import order, B904 exception chaining)
1 parent 3e507f2 commit 4835a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/a2a/server/request_handlers/rest_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ async def on_get_task(
254254
except ValueError:
255255
raise ServerError(
256256
error=InvalidParamsError(message='historyLength must be a valid integer')
257-
)
257+
) from None
258258
params = GetTaskRequest(id=task_id, history_length=history_length)
259259
task = await self.request_handler.on_get_task(params, context)
260260
if task:

0 commit comments

Comments
 (0)