From 8678a6455ff6a4b99589937f842be30872df227c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 31 Aug 2024 07:05:11 -0700 Subject: [PATCH] fixes #1264 --- aider/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index 91a4641e1..56259c6a2 100644 --- a/aider/io.py +++ b/aider/io.py @@ -552,7 +552,7 @@ class InputOutput: try: with self.chat_history_file.open("a", encoding=self.encoding) as f: f.write(text) - except PermissionError: + except (PermissionError, OSError): self.tool_error( f"Warning: Unable to write to chat history file {self.chat_history_file}." " Permission denied."