mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
fix: Handle potential git errors in git_ignored_file method
This commit is contained in:
parent
721d852cc7
commit
266350b8ce
1 changed files with 1 additions and 0 deletions
|
@ -334,6 +334,7 @@ class GitRepo:
|
||||||
def git_ignored_file(self, path):
|
def git_ignored_file(self, path):
|
||||||
if not self.repo:
|
if not self.repo:
|
||||||
return
|
return
|
||||||
|
#ai try/except for git errors!
|
||||||
if self.repo.ignored(path):
|
if self.repo.ignored(path):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue