mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
make sure **.txt does not crash chat #293
This commit is contained in:
parent
95f2b4546e
commit
b6142af12b
2 changed files with 16 additions and 1 deletions
|
@ -253,7 +253,11 @@ class Commands:
|
|||
yield Completion(fname, start_position=-len(partial))
|
||||
|
||||
def glob_filtered_to_repo(self, pattern):
|
||||
raw_matched_files = list(Path(self.coder.root).glob(pattern))
|
||||
try:
|
||||
raw_matched_files = list(Path(self.coder.root).glob(pattern))
|
||||
except ValueError as err:
|
||||
self.io.tool_error(f"Error matching {pattern}: {err}")
|
||||
raw_matched_files = []
|
||||
|
||||
matched_files = []
|
||||
for fn in raw_matched_files:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue