From f047882ac16d4b55e8328d79ac957e0f1128a8e6 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 9 Jan 2025 15:01:36 -0800 Subject: [PATCH] refactor: Add InvalidGitRepositoryError to ANY_GIT_ERROR list --- aider/repo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/repo.py b/aider/repo.py index ccafd629b..dd8b6f113 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -8,6 +8,7 @@ try: ANY_GIT_ERROR = [ git.exc.ODBError, git.exc.GitError, + git.exc.InvalidGitRepositoryError, ] except ImportError: git = None