From 1d2a3f573c12acc62c11428ae32f1f8f5e73a3bf Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 7 Oct 2024 13:05:40 -0700 Subject: [PATCH] fixes #1941 --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")