diff options
author | David Reyna <David.Reyna@windriver.com> | 2014-04-02 00:21:02 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-05 14:55:28 +0100 |
commit | 4707c7c3eebdb15d5560af6c2e6cee68f85e0a5f (patch) | |
tree | 9ab54fa2d011b54ce04d940aa4ce39b6ff525768 /bitbake | |
parent | 52ed413c3c3be191028290ffdb87104582e6bbb9 (diff) | |
download | poky-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')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templatetags/projecttags.py | 2 |
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 '' |