mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fixes #1264
This commit is contained in:
parent
8f5b243c1b
commit
8678a6455f
1 changed files with 1 additions and 1 deletions
|
@ -552,7 +552,7 @@ class InputOutput:
|
||||||
try:
|
try:
|
||||||
with self.chat_history_file.open("a", encoding=self.encoding) as f:
|
with self.chat_history_file.open("a", encoding=self.encoding) as f:
|
||||||
f.write(text)
|
f.write(text)
|
||||||
except PermissionError:
|
except (PermissionError, OSError):
|
||||||
self.tool_error(
|
self.tool_error(
|
||||||
f"Warning: Unable to write to chat history file {self.chat_history_file}."
|
f"Warning: Unable to write to chat history file {self.chat_history_file}."
|
||||||
" Permission denied."
|
" Permission denied."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue