From aaceec1e1ff8ff77f231b0094131f20fac16528a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 3 Jul 2024 21:02:26 -0300 Subject: [PATCH] fix for tests --- aider/io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index aaa34a07b..fc7e56f99 100644 --- a/aider/io.py +++ b/aider/io.py @@ -37,8 +37,9 @@ class AutoCompleter(Completer): self.words = set() self.commands = commands - self.command_names = self.commands.get_commands() self.command_completions = dict() + if commands: + self.command_names = self.commands.get_commands() for rel_fname in addable_rel_fnames: self.words.add(rel_fname)