Fix KeyError in config when not present in BitBucket trigger
Fixes #2054
This commit is contained in:
parent
48935d7208
commit
b0b47bbfde
1 changed files with 3 additions and 0 deletions
|
@ -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('/')
|
||||
|
||||
|
|
Reference in a new issue