diff --git a/buildtrigger/bitbuckethandler.py b/buildtrigger/bitbuckethandler.py index 879448456..e14d75b09 100644 --- a/buildtrigger/bitbuckethandler.py +++ b/buildtrigger/bitbuckethandler.py @@ -300,7 +300,7 @@ class BitbucketBuildTrigger(BuildTriggerHandler): bitbucket_client = self._get_client() (result, data, err_msg) = bitbucket_client.get_authorization_url() if not result: - raise RepositoryReadException(err_msg) + raise TriggerProviderException(err_msg) return data @@ -547,4 +547,3 @@ class BitbucketBuildTrigger(BuildTriggerHandler): repository_name, lookup_author) return self.prepare_build(metadata, is_manual=True) -