Skip to content

refactor: use custom NotFoundError when session is not found, instead of ValueError #1384

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Tobias-Freire
Copy link

What was done

  • Substitute ValueError for NotFoundError when session not found in adk-python/src/google/adk/runners.py
  • Adjust unit tests substituting ValueError for NotFoundError in apropriated parts of code in adk-python/tests/unittests/sessions/test_vertex_ai_session_service.py

Motivation

Improves code readability and maintainability.

Issue

Closes #1383

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use NotFoundError instead of ValueError when session not found
3 participants