Skip to content

Commit cfa6475

Browse files
committed
fix a mypy error
1 parent ab634aa commit cfa6475

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/a2a/contrib/tasks/vertex_task_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def to_sdk_part(stored_part: genai_types.Part) -> Part:
8787
if stored_part.text:
8888
return Part(root=TextPart(text=stored_part.text))
8989
if stored_part.inline_data:
90-
encoded_bytes = base64.b64encode(stored_part.inline_data.data).decode(
90+
encoded_bytes = base64.b64encode(stored_part.inline_data.data or b'').decode(
9191
'utf-8'
9292
)
9393
return Part(

0 commit comments

Comments
 (0)