fix task v1 generation in run_task api (#2075)

This commit is contained in:
Shuchang Zheng 2025-04-02 13:57:26 -04:00 committed by GitHub
parent a45e630b35
commit cf013af430
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")