This commit is contained in:
Paul Gauthier 2024-10-07 13:05:40 -07:00
parent cbdabd3ae9
commit 1d2a3f573c

View file

@ -654,7 +654,7 @@ class Commands:
else: else:
try: try:
raw_matched_files = list(Path(self.coder.root).glob(pattern)) raw_matched_files = list(Path(self.coder.root).glob(pattern))
except IndexError: except (IndexError, AttributeError):
raw_matched_files = [] raw_matched_files = []
except ValueError as err: except ValueError as err:
self.io.tool_error(f"Error matching {pattern}: {err}") self.io.tool_error(f"Error matching {pattern}: {err}")