Correct exception for toolchains that don't have the right attributes
[bertos.git] / 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)