return None from db layer if no persistent browser session is found (rather than raising an error) (#3100)

This commit is contained in:
Jonathan Dobson
2025-08-04 14:47:40 -04:00
committed by GitHub
parent 5b0ccee827
commit 8718d3ca61

View File

@@ -3002,8 +3002,7 @@ class AgentDB:
return PersistentBrowserSession.model_validate(persistent_browser_session)
raise NotFoundError(f"PersistentBrowserSession {session_id} not found")
except NotFoundError:
LOG.error("NotFoundError", exc_info=True)
raise
return None
except SQLAlchemyError:
LOG.error("SQLAlchemyError", exc_info=True)
raise