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:
David Reyna
2014-04-02 00:21:02 -07:00
committed by Richard Purdie
parent 52ed413c3c
commit 4707c7c3ee

View File

@@ -247,5 +247,5 @@ def get_dict_value(dictionary, key):
"""
try:
return dictionary[key]
except KeyError:
except (KeyError, IndexError):
return ''