mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 12:49:03 +02:00
schedulers: Handle yp_branch == None case
The addition of a-full automatic triggers discovered yp_branch can be None causing tracebacks. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5f3bc3f33d
commit
31b796b042
|
@ -106,7 +106,7 @@ def builderNamesFromConfig(props):
|
|||
yp_branch = props.sourcestamps[0]['branch']
|
||||
|
||||
for b in config.trigger_builders_wait_releases:
|
||||
if yp_branch.startswith(b):
|
||||
if yp_branch and yp_branch.startswith(b):
|
||||
log.msg("builderNames: Filtering branch %s due to entry %s" % (str(yp_branch), str(b)))
|
||||
return config.trigger_builders_wait_releases[b]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user