From 75b79fa002a5c6a7e148d579253d77434a77dc96 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 31 Mar 2025 09:17:26 +1300 Subject: [PATCH] fix: Correct HTTPError status code access in onboarding --- aider/onboarding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/onboarding.py b/aider/onboarding.py index e24224c86..8b01679e6 100644 --- a/aider/onboarding.py +++ b/aider/onboarding.py @@ -198,7 +198,7 @@ def exchange_code_for_key(code, code_verifier, io): return None except requests.exceptions.HTTPError as e: io.tool_error( - f"Error exchanging code for OpenRouter key: {e.status_code} {e.response.reason}" + f"Error exchanging code for OpenRouter key: {e.response.status_code} {e.response.reason}" ) io.tool_error(f"Response: {e.response.text}") return None