mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
handle valerr in render_incremental_response
This commit is contained in:
parent
40787b3637
commit
61e9003ce0
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ class WholeFileCoder(Coder):
|
|||
return context
|
||||
|
||||
def render_incremental_response(self, final):
|
||||
return self.update_files(mode="diff")
|
||||
try:
|
||||
return self.update_files(mode="diff")
|
||||
except ValueError:
|
||||
return self.partial_response_content
|
||||
|
||||
def update_files(self, mode="update"):
|
||||
content = self.partial_response_content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue