Correct exception for toolchains that don't have the right attributes
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Feb 2009 09:49:30 +0000 (09:49 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 24 Feb 2009 09:49:30 +0000 (09:49 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2383 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BToolchainPage.py

index 100abb5666488b290da0f2e3c8d3085f21e0ace5..22f96a4a279f69581b894529307cdf52d74a4cf0 100644 (file)
@@ -83,7 +83,8 @@ class BToolchainPage(BWizardPage):
             item.setIcon(QIcon(":/images/ok.png"))
         else:
             item.setIcon(QIcon(":/images/warning.png"))
-        item.setText("GCC " + infos["version"] + " - " + infos["target"])
+        if "version" in infos.keys() and "target" in infos.keys():
+            item.setText("GCC " + infos["version"] + " - " + infos["target"])
     
     def _invalidItem(self, index):
         item = self.pageContent.toolchainList.item(index)