Fix merge breakage

This commit is contained in:
Joseph Schorr 2017-03-02 16:33:47 -05:00
parent 1c52427cd2
commit 81e96d6c1d

View file

@ -362,8 +362,14 @@ class GithubBuildTrigger(BuildTriggerHandler):
def load_dockerfile_contents(self):
config = self.config
gh_client = self._get_client()
source = config['build_source']
try:
repo = gh_client.get_repo(source)
except GithubException as ghe:
message = ghe.data.get('message', 'Unable to list contents of repository: %s' % source)
raise RepositoryReadException(message)
path = self.get_dockerfile_path()
try:
file_info = repo.get_file_contents(path)