diff --git a/lib/crewai/src/crewai/cli/authentication/main.py b/lib/crewai/src/crewai/cli/authentication/main.py index 8559739fc..9f300fe54 100644 --- a/lib/crewai/src/crewai/cli/authentication/main.py +++ b/lib/crewai/src/crewai/cli/authentication/main.py @@ -149,7 +149,9 @@ class AuthenticationCommand: return 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"]) attempts += 1