Skip to content

Commit 53f48c7

Browse files
committed
fix import
1 parent dd0cddb commit 53f48c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

veadk/cloud/cloud_app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,10 @@ async def message_send(
423423
# we ignore type checking here, because the response
424424
# from CloudApp will not be `Task` type
425425
result = res.root.result # type: ignore
426-
from a2a.types import Task
426+
try:
427+
from a2a.types import Task
428+
except ImportError:
429+
return result
427430

428431
if isinstance(result, Task):
429432
if result.history:

0 commit comments

Comments
 (0)