Merge pull request #783 from coreos-inc/fix-github-exception-ref
Fix missing GithubException ref
This commit is contained in:
commit
cf1b0eb2fb
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue