mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-01 18:20:06 +00:00
more logging when org not found (#2569)
This commit is contained in:
parent
d09c1c865c
commit
77c17b705f
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ async def _get_current_org_cached(x_api_key: str, db: AgentDB) -> Organization:
|
|||
|
||||
organization = await db.get_organization(organization_id=api_key_data.sub)
|
||||
if not organization:
|
||||
LOG.warning("Organization not found", organization_id=api_key_data.sub, **payload)
|
||||
raise HTTPException(status_code=404, detail="Organization not found")
|
||||
|
||||
# check if the token exists in the database
|
||||
|
|
Loading…
Add table
Reference in a new issue