Skip to content

Commit 9b2bd41

Browse files
seanzhougooglecopybara-github
authored andcommitted
chore: Put user_id in the error message when session is not found
Co-authored-by: Xiang (Sean) Zhou <[email protected]> PiperOrigin-RevId: 853771033
1 parent 392dda1 commit 9b2bd41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/google/adk/runners.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,10 @@ async def run_live(
962962
app_name=self.app_name, user_id=user_id, session_id=session_id
963963
)
964964
if not session:
965-
raise ValueError(f'Session not found: {session_id}')
965+
raise ValueError(
966+
f'Session not found for user id: {user_id} and session id:'
967+
f' {session_id}'
968+
)
966969
invocation_context = self._new_invocation_context_for_live(
967970
session,
968971
live_request_queue=live_request_queue,

0 commit comments

Comments
 (0)