mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +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:
|
if text:
|
||||||
self.partial_response_content += text
|
self.partial_response_content += text
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
text = None
|
||||||
|
|
||||||
if self.pretty:
|
if self.pretty:
|
||||||
self.live_incremental_response(live, False)
|
self.live_incremental_response(live, False)
|
||||||
else:
|
elif text:
|
||||||
sys.stdout.write(text)
|
sys.stdout.write(text)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue