diff --git a/endpoints/trigger.py b/endpoints/trigger.py index f281b83b7..dd8d30eec 100644 --- a/endpoints/trigger.py +++ b/endpoints/trigger.py @@ -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: