mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
fix: Handle non-retryable errors by returning None in simple_send_with_retries
This commit is contained in:
parent
d0e85d9c2c
commit
7a8399571a
1 changed files with 2 additions and 2 deletions
|
@ -88,10 +88,10 @@ def simple_send_with_retries(model_name, messages, extra_params=None):
|
|||
should_retry = False
|
||||
|
||||
if not should_retry:
|
||||
break
|
||||
return None
|
||||
|
||||
print(f"Retrying in {retry_delay:.1f} seconds...")
|
||||
time.sleep(retry_delay)
|
||||
continue
|
||||
except AttributeError:
|
||||
return
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue