def get_project_by_path(self, project_path):
try:
return self.gitlab.projects.get(project_path)
except GitlabConnectionError as e:
err('Cannot connect to the gitlab server: %s', e)
except GitlabGetError:
err('Project [%s] not found', project_path)
except GitlabError as e:
err('Error when getting project [%s]: %s' % (project_path, e))
评论列表
文章目录