Fix missing GithubException ref
This commit is contained in:
parent
1520d68c80
commit
4f9a7b3482
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ class GithubBuildTrigger(BuildTriggerHandler):
|
||||||
hook = gh_repo.create_hook('web', webhook_config)
|
hook = gh_repo.create_hook('web', webhook_config)
|
||||||
config['hook_id'] = hook.id
|
config['hook_id'] = hook.id
|
||||||
config['master_branch'] = gh_repo.default_branch
|
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
|
default_msg = 'Unable to create webhook on repository: %s' % new_build_source
|
||||||
msg = GithubBuildTrigger._get_error_message(ghe, default_msg)
|
msg = GithubBuildTrigger._get_error_message(ghe, default_msg)
|
||||||
raise TriggerActivationException(msg)
|
raise TriggerActivationException(msg)
|
||||||
|
|
Reference in a new issue