mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
refactor: move import check before API key setup
This commit is contained in:
parent
99dc235a00
commit
e40a07a8a1
1 changed files with 2 additions and 2 deletions
|
@ -487,6 +487,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
cmd_line = scrub_sensitive_info(args, cmd_line)
|
||||
io.tool_output(cmd_line, log_only=True)
|
||||
|
||||
check_and_load_imports(io, verbose=args.verbose)
|
||||
|
||||
if args.anthropic_api_key:
|
||||
os.environ["ANTHROPIC_API_KEY"] = args.anthropic_api_key
|
||||
|
||||
|
@ -687,8 +689,6 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
if args.exit:
|
||||
return
|
||||
|
||||
check_and_load_imports(io, verbose=args.verbose)
|
||||
|
||||
while True:
|
||||
try:
|
||||
coder.run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue