Skip to content

Automate browser based workflows with AI

APIKeyNotFound Exception (#2892)

Shuchang Zheng5f32990edd0d
diff --git a/skyvern/exceptions.py b/skyvern/exceptions.py
index a53681c80..eac63a2eb 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}")