From 12f1bf643a7b2176eb10e5c2f939c785e83f5ba5 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 21 Sep 2024 19:02:35 -0700 Subject: [PATCH] fix: Add ValueError to ANY_GIT_ERROR tuple --- aider/repo.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/aider/repo.py b/aider/repo.py index b90b946cb..b0ff1dd91 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -10,7 +10,15 @@ from aider.sendchat import simple_send_with_retries from .dump import dump # noqa: F401 -ANY_GIT_ERROR = (git.exc.ODBError, git.exc.GitError, OSError, IndexError, BufferError, TypeError) +ANY_GIT_ERROR = ( + git.exc.ODBError, + git.exc.GitError, + OSError, + IndexError, + BufferError, + TypeError, + ValueError, +) class GitRepo: