mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
Fix fetching of error description for workos polling
This commit is contained in:
@@ -149,7 +149,9 @@ class AuthenticationCommand:
|
|||||||
return
|
return
|
||||||
|
|
||||||
if token_data["error"] not in ("authorization_pending", "slow_down"):
|
if token_data["error"] not in ("authorization_pending", "slow_down"):
|
||||||
raise requests.HTTPError(token_data["error_description"])
|
raise requests.HTTPError(
|
||||||
|
token_data.get("error_description") or token_data.get("error")
|
||||||
|
)
|
||||||
|
|
||||||
time.sleep(device_code_data["interval"])
|
time.sleep(device_code_data["interval"])
|
||||||
attempts += 1
|
attempts += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user