From fb4d2f90c1748154ee7eb59eeb55a59bb06a624d Mon Sep 17 00:00:00 2001 From: contributor Date: Wed, 25 Jun 2025 15:58:00 +0300 Subject: [PATCH] fix: check for input_history_file none --- aider/io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index 46621cfce..5dde5ca7f 100644 --- a/aider/io.py +++ b/aider/io.py @@ -307,8 +307,9 @@ class InputOutput: self.yes = yes + if input_history_file is not None: + Path(input_history_file).mkdir(parents=True, exist_ok=True) self.input_history_file = input_history_file - Path(self.input_history_file).parent.mkdir(parents=True, exist_ok=True) self.llm_history_file = llm_history_file if chat_history_file is not None: self.chat_history_file = Path(chat_history_file)