fix: Handle potential git errors in git_ignored_file method

This commit is contained in:
Paul Gauthier 2024-11-14 06:48:33 -08:00 committed by Paul Gauthier (aider)
parent 721d852cc7
commit 266350b8ce

View file

@ -334,6 +334,7 @@ class GitRepo:
def git_ignored_file(self, path):
if not self.repo:
return
#ai try/except for git errors!
if self.repo.ignored(path):
return True