handle valerr in render_incremental_response

This commit is contained in:
Paul Gauthier 2023-07-07 08:29:53 -07:00
parent 40787b3637
commit 61e9003ce0

View file

@ -30,7 +30,10 @@ class WholeFileCoder(Coder):
return context return context
def render_incremental_response(self, final): 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"): def update_files(self, mode="update"):
content = self.partial_response_content content = self.partial_response_content