Patchwork [bitbake-devel] hob: check if imageconfiguration page has the attribute 'warnings_bar'

login
register
mail settings
Submitter Cristiana Voicu
Date June 20, 2013, 11:16 a.m.
Message ID <1371726961-30138-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/52111/
State New
Headers show

Comments

Cristiana Voicu - June 20, 2013, 11:16 a.m.
[YOCTO #4571]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index c018d70..1f7453a 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -169,7 +169,8 @@  class ImageConfigurationPage (HobPage):
 
     def disable_warnings_bar(self):
         if self.builder.parsing_warnings:
-            self.warnings_bar.hide_all()
+            if hasattr(self, 'warnings_bar'):
+                self.warnings_bar.hide_all()
             self.builder.parsing_warnings = []
 
     def create_config_machine(self):