Fix KeyError in config when not present in BitBucket trigger

Fixes #2054
This commit is contained in:
Joseph Schorr 2016-10-31 13:26:58 -04:00
parent 48935d7208
commit b0b47bbfde

View file

@ -446,6 +446,9 @@ class BitbucketBuildTrigger(BuildTriggerHandler):
return data
def list_field_values(self, field_name, limit=None):
if 'build_source' not in self.config:
return None
source = self.config['build_source']
(namespace, name) = source.split('/')