mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 11:45:00 +00:00
fix: Correct HTTPError status code access in onboarding
This commit is contained in:
parent
27c1fd0262
commit
75b79fa002
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ def exchange_code_for_key(code, code_verifier, io):
|
||||||
return None
|
return None
|
||||||
except requests.exceptions.HTTPError as e:
|
except requests.exceptions.HTTPError as e:
|
||||||
io.tool_error(
|
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}")
|
io.tool_error(f"Response: {e.response.text}")
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue