Skip to content

Commit 0effc0f

Browse files
style: ruff format
1 parent c30717e commit 0effc0f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/a2a/server/request_handlers/rest_handler.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,15 @@ async def on_get_task(
262262
try:
263263
params = TaskQueryParams(
264264
id=task_id,
265-
history_length=history_length_str if history_length_str else None,
265+
history_length=history_length_str
266+
if history_length_str
267+
else None,
266268
)
267269
except ValidationError:
268270
raise ServerError(
269-
error=InvalidParamsError(message='historyLength must be a valid integer')
271+
error=InvalidParamsError(
272+
message='historyLength must be a valid integer'
273+
)
270274
) from None
271275
task = await self.request_handler.on_get_task(params, context)
272276
if task:

0 commit comments

Comments
 (0)