fix: update exception handling for git repo initialization

This commit is contained in:
Paul Gauthier 2024-08-31 07:44:04 -07:00 committed by Paul Gauthier (aider)
parent 51bf7da8bd
commit 9e196a3bdf

View file

@ -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