Fix: Skip broken links in _iter_gitignore_files #1435

This commit is contained in:
Michael Panchenko committed 2026-04-29 12:14:12 +02:00
1 parent 5dd1a41000
commit 6dfda8c99e
1 file changed
+3
+3
View File
@@ -173,6 +173,9 @@ class GitignoreParser:
except PermissionError as ex:
log.debug(f"Skipping entry due to permission error: {entry.path}", exc_info=ex)
continue
except FileNotFoundError as ex:
log.debug(f"Skipping entry due to file not found error (possibly a broken link): {entry.path}", exc_info=ex)
continue
while queue:
next_abs_path = queue.pop(0)