mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Fix corner case of undefined text
when using --no-pretty
This commit is contained in:
parent
94e5aeac62
commit
3c0720ff1c
1 changed files with 2 additions and 2 deletions
|
@ -672,11 +672,11 @@ class Coder:
|
|||
if text:
|
||||
self.partial_response_content += text
|
||||
except AttributeError:
|
||||
pass
|
||||
text = None
|
||||
|
||||
if self.pretty:
|
||||
self.live_incremental_response(live, False)
|
||||
else:
|
||||
elif text:
|
||||
sys.stdout.write(text)
|
||||
sys.stdout.flush()
|
||||
finally:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue