Fix missing GithubException ref

This commit is contained in:
Silas Sewell 2015-11-04 11:19:49 -05:00
parent 1520d68c80
commit 4f9a7b3482

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)