Handle some GitPython exceptions.