From 4707c7c3eebdb15d5560af6c2e6cee68f85e0a5f Mon Sep 17 00:00:00 2001 From: David Reyna Date: Wed, 2 Apr 2014 00:21:02 -0700 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templatetags/projecttags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/toaster/toastergui') 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): """ try: return dictionary[key] - except KeyError: + except (KeyError, IndexError): return '' -- cgit v1.2.3-54-g00ecf