This commit is contained in:
mrT23
2023-11-08 14:31:08 +02:00
parent 10ec0a1812
commit 0293412a42
3 changed files with 10 additions and 1 deletions

View File

@ -23,7 +23,7 @@ def filter_ignored(files):
# keep filenames that _don't_ match the ignore regex
for r in compiled_patterns:
files = [f for f in files if not r.match(f.filename)]
files = [f for f in files if (f.filename and not r.match(f.filename))]
except Exception as e:
print(f"Could not filter file list: {e}")