mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
fix: ignore unicode errors in append_chat_history
This commit is contained in:
parent
d063be23c9
commit
1fe2be4633
1 changed files with 1 additions and 1 deletions
|
@ -626,7 +626,7 @@ class InputOutput:
|
||||||
text += "\n"
|
text += "\n"
|
||||||
if self.chat_history_file is not None:
|
if self.chat_history_file is not None:
|
||||||
try:
|
try:
|
||||||
with self.chat_history_file.open("a", encoding=self.encoding) as f:
|
with self.chat_history_file.open("a", encoding=self.encoding, errors="ignore") as f:
|
||||||
f.write(text)
|
f.write(text)
|
||||||
except (PermissionError, OSError):
|
except (PermissionError, OSError):
|
||||||
self.tool_error(
|
self.tool_error(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue