Skip to content

Commit ee3918e

Browse files
seanzhougooglecopybara-github
authored andcommitted
chore: Update the error message when A2A is not supported for the installed python version
PiperOrigin-RevId: 785490858
1 parent 81e0d40 commit ee3918e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

‎src/google/adk/a2a/converters/request_converter.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
except ImportError as e:
2323
if sys.version_info < (3, 10):
2424
raise ImportError(
25-
'A2A Tool requires Python 3.10 or above. Please upgrade your Python'
26-
' version.'
25+
'A2A requires Python 3.10 or above. Please upgrade your Python version.'
2726
) from e
2827
else:
2928
raise e

‎src/google/adk/a2a/logs/log_utils.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
except ImportError as e:
3131
if sys.version_info < (3, 10):
3232
raise ImportError(
33-
"A2A Tool requires Python 3.10 or above. Please upgrade your Python"
34-
" version."
33+
"A2A requires Python 3.10 or above. Please upgrade your Python version."
3534
) from e
3635
else:
3736
raise e

0 commit comments

Comments
 (0)