From 5f32990edd0d2fba67a83b1bdc9ef7ebe28fa51e Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Tue, 8 Jul 2025 08:10:44 -0700 Subject: [PATCH] APIKeyNotFound Exception (#2892) --- skyvern/exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/skyvern/exceptions.py b/skyvern/exceptions.py index a53681c8..eac63a2e 100644 --- a/skyvern/exceptions.py +++ b/skyvern/exceptions.py @@ -728,3 +728,8 @@ class BrowserSessionNotFound(SkyvernHTTPException): f"Browser session {browser_session_id} does not exist or is not live.", status_code=status.HTTP_404_NOT_FOUND, ) + + +class APIKeyNotFound(SkyvernHTTPException): + def __init__(self, organization_id: str) -> None: + super().__init__(f"No valid API key token found for organization {organization_id}")