mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
fix: Add error handling for git.ignored() method
This commit is contained in:
parent
266350b8ce
commit
94c3957d92
1 changed files with 5 additions and 3 deletions
|
@ -334,9 +334,11 @@ class GitRepo:
|
|||
def git_ignored_file(self, path):
|
||||
if not self.repo:
|
||||
return
|
||||
#ai try/except for git errors!
|
||||
try:
|
||||
if self.repo.ignored(path):
|
||||
return True
|
||||
except ANY_GIT_ERROR:
|
||||
return False
|
||||
|
||||
def ignored_file(self, fname):
|
||||
self.refresh_aider_ignore()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue