Merge pull request #153 from coreos-inc/noauthscm
Raise a proper deactivation exception on bad credentials
This commit is contained in:
commit
3036d339b2
1 changed files with 3 additions and 0 deletions
|
@ -637,6 +637,9 @@ class GithubBuildTrigger(BuildTriggerHandler):
|
|||
except UnknownObjectException:
|
||||
msg = 'Unable to find GitHub repository for source: %s' % config['build_source']
|
||||
raise TriggerDeactivationException(msg)
|
||||
except GitHubBadCredentialsException:
|
||||
msg = 'Unable to access repository to disable trigger'
|
||||
raise TriggerDeactivationException(msg)
|
||||
|
||||
# If the trigger uses a deploy key, remove it.
|
||||
try:
|
||||
|
|
Reference in a new issue