summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2014-04-02 00:21:02 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-05 14:55:28 +0100
commit4707c7c3eebdb15d5560af6c2e6cee68f85e0a5f (patch)
tree9ab54fa2d011b54ce04d940aa4ce39b6ff525768 /bitbake/lib
parent52ed413c3c3be191028290ffdb87104582e6bbb9 (diff)
downloadpoky-4707c7c3eebdb15d5560af6c2e6cee68f85e0a5f.tar.gz
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/toastergui/templatetags/projecttags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
index 3dd0f3dbe2..ee08ab74a9 100644
--- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
+++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
@@ -247,5 +247,5 @@ def get_dict_value(dictionary, key):
247 """ 247 """
248 try: 248 try:
249 return dictionary[key] 249 return dictionary[key]
250 except KeyError: 250 except (KeyError, IndexError):
251 return '' 251 return ''