use git.exc not gitdb.exc

This commit is contained in:
Paul Gauthier 2024-08-31 08:21:07 -07:00
parent 01964ca294
commit c32a991b2c
2 changed files with 2 additions and 4 deletions

View file

@ -6,7 +6,6 @@ import threading
from pathlib import Path
import git
import gitdb
from dotenv import load_dotenv
from prompt_toolkit.enums import EditingMode
@ -57,7 +56,7 @@ def make_new_repo(git_root, io):
try:
repo = git.Repo.init(git_root)
check_gitignore(git_root, io, False)
except (gitdb.exc.ODBError, git.exc.GitCommandNotFound) as err: # issue #1233
except (git.exc.ODBError, git.exc.GitCommandNotFound) as err: # issue #1233
io.tool_error(f"Unable to create git repo in {git_root}")
io.tool_error(str(err))
return