From 266350b8ce93d30e88a48030ed31779dbf45c6fd Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 14 Nov 2024 06:48:33 -0800 Subject: [PATCH] fix: Handle potential git errors in git_ignored_file method --- aider/repo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/repo.py b/aider/repo.py index 83cb914de..6a3f666e9 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -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