mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Clean up countdown
This commit is contained in:
parent
608c80404e
commit
2369489321
2 changed files with 2 additions and 53 deletions
|
@ -70,6 +70,7 @@ class Coder:
|
|||
lint_outcome = None
|
||||
test_outcome = None
|
||||
multi_response_content = ""
|
||||
partial_response_content = ""
|
||||
|
||||
@classmethod
|
||||
def create(
|
||||
|
@ -907,12 +908,7 @@ class Coder:
|
|||
if retry_delay > 60:
|
||||
break
|
||||
self.io.tool_output(f"Retrying in {retry_delay:.1f} seconds...")
|
||||
countdown = retry_delay
|
||||
while countdown > 0:
|
||||
print(f"Retrying in {countdown:.1f} seconds...\r", end="")
|
||||
time.sleep(0.1)
|
||||
countdown -= 0.1
|
||||
print(" " * 50 + "\r", end="") # Clear the line after countdown
|
||||
time.sleep(retry_delay)
|
||||
continue
|
||||
except KeyboardInterrupt:
|
||||
interrupted = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue