Merge pull request #783 from coreos-inc/fix-github-exception-ref

Fix missing GithubException ref
This commit is contained in:
Silas Sewell 2015-11-04 11:47:02 -05:00
commit cf1b0eb2fb

View file

@ -206,7 +206,7 @@ class GithubBuildTrigger(BuildTriggerHandler):
hook = gh_repo.create_hook('web', webhook_config)
config['hook_id'] = hook.id
config['master_branch'] = gh_repo.default_branch
except GithubException:
except GithubException as ghe:
default_msg = 'Unable to create webhook on repository: %s' % new_build_source
msg = GithubBuildTrigger._get_error_message(ghe, default_msg)
raise TriggerActivationException(msg)