You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add specific exception classes for libgit2 error codes
The following libgit2 errors are now raised as specific pygit2
exceptions instead of plain ValueError or KeyError:
- AlreadyExistsError (also ValueError)
- InvalidSpecError (also ValueError)
- InvalidError (also ValueError)
- NotFoundError (also KeyError)
- AmbiguousError (also ValueError)
- AuthError
- CertificateError
All new exceptions inherit from GitError, so existing code catching
GitError, ValueError, KeyError, or Exception continues to work.
Fixes#830Closes#998
Assisted-by: Kimi Code
0 commit comments