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)