diff --git a/aider/commands.py b/aider/commands.py index 4b47b3927..43467b216 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -654,7 +654,7 @@ class Commands: else: try: raw_matched_files = list(Path(self.coder.root).glob(pattern)) - except IndexError: + except (IndexError, AttributeError): raw_matched_files = [] except ValueError as err: self.io.tool_error(f"Error matching {pattern}: {err}")