mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
bitbake: toaster: catch IndexError error in dictionary lookups
In the get_dict_value filter, there is the edge case where halted builds can lead to IndexError errors in dictionary lookups, so we need to catch those. [YOCTO #6067] (Bitbake rev: f6fcce974ce3b145bc472cd4e9721d56191828a4) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
52ed413c3c
commit
4707c7c3ee
@@ -247,5 +247,5 @@ def get_dict_value(dictionary, key):
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
return dictionary[key]
|
return dictionary[key]
|
||||||
except KeyError:
|
except (KeyError, IndexError):
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user