Skip to content

Automate browser based workflows with AI

fix task v1 generation in run_task api (#2075)

Shuchang Zhengcf013af430d3
diff --git a/skyvern/cli/commands.py b/skyvern/cli/commands.py
index ca4b0f6be..8a9573152 100644
--- a/skyvern/cli/commands.py
+++ b/skyvern/cli/commands.py
@@ -171,7 +171,7 @@ async def _setup_local_organization() -> str:
organization_id=organization.organization_id,
token_type=OrganizationAuthTokenType.api,
)
- return org_auth_token.token
+ return org_auth_token.token if org_auth_token else ""
@app.command(name="init")