You've already forked adk-python
mirror of
https://github.com/encounter/adk-python.git
synced 2026-03-30 10:57:20 -07:00
chore: Put user_id in the error message when session is not found
Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com> PiperOrigin-RevId: 853771033
This commit is contained in:
committed by
Copybara-Service
parent
392dda1e0c
commit
9b2bd411dd
@@ -962,7 +962,10 @@ class Runner:
|
||||
app_name=self.app_name, user_id=user_id, session_id=session_id
|
||||
)
|
||||
if not session:
|
||||
raise ValueError(f'Session not found: {session_id}')
|
||||
raise ValueError(
|
||||
f'Session not found for user id: {user_id} and session id:'
|
||||
f' {session_id}'
|
||||
)
|
||||
invocation_context = self._new_invocation_context_for_live(
|
||||
session,
|
||||
live_request_queue=live_request_queue,
|
||||
|
||||
Reference in New Issue
Block a user