From 8c0bd2034ca5325ab704a71521b5b20c8ba2ca78 Mon Sep 17 00:00:00 2001 From: Sasha Sobran Date: Tue, 24 Feb 2026 04:42:06 -0800 Subject: [PATCH] chore: SessionNotFoundError only inherits form ValueError Co-authored-by: Sasha Sobran PiperOrigin-RevId: 874545504 --- src/google/adk/errors/session_not_found_error.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/google/adk/errors/session_not_found_error.py b/src/google/adk/errors/session_not_found_error.py index a870d0d2..4fc3258e 100644 --- a/src/google/adk/errors/session_not_found_error.py +++ b/src/google/adk/errors/session_not_found_error.py @@ -14,14 +14,11 @@ from __future__ import annotations -from .not_found_error import NotFoundError - -class SessionNotFoundError(ValueError, NotFoundError): +class SessionNotFoundError(ValueError): """Raised when a session cannot be found. - Inherits from both ValueError (for backward compatibility) and NotFoundError - (for semantic consistency with the project's error hierarchy). + Inherits from ValueError (for backward compatibility). """ def __init__(self, message="Session not found."):