mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
Handle missing api key gracefully
This commit is contained in:
parent
b0d860bcf4
commit
976c5c8e74
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ def main(args=None, input=None, output=None):
|
|||
io.tool(*sys.argv, log_only=True)
|
||||
|
||||
if not args.openai_api_key:
|
||||
io.tool_error("No OpenAI API key provided. Use --openai-api-key or env OPENAI_API_KEY,")
|
||||
io.tool_error("No OpenAI API key provided. Use --openai-api-key or env OPENAI_API_KEY.")
|
||||
return 1
|
||||
|
||||
coder = Coder(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue