From 9e196a3bdf2d1fb360c422ff67d9b21f3104a5f7 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 31 Aug 2024 07:44:04 -0700 Subject: [PATCH] fix: update exception handling for git repo initialization --- aider/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/main.py b/aider/main.py index f66114709..308eead03 100644 --- a/aider/main.py +++ b/aider/main.py @@ -56,7 +56,7 @@ def make_new_repo(git_root, io): try: repo = git.Repo.init(git_root) check_gitignore(git_root, io, False) - except git.exc.GitCommandError as err: # issue #1233 + except gitdb.exc.ODBError as err: # issue #1233 io.tool_error(f"Unable to create git repo in {git_root}") io.tool_error(str(err)) return