From 207f2e0949a7ff66a91076a7c69b9a297e62f36b Mon Sep 17 00:00:00 2001 From: duplo Date: Tue, 24 Feb 2009 09:49:30 +0000 Subject: [PATCH] Correct exception for toolchains that don't have the right attributes git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2383 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BToolchainPage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wizard/BToolchainPage.py b/wizard/BToolchainPage.py index 100abb56..22f96a4a 100644 --- a/wizard/BToolchainPage.py +++ b/wizard/BToolchainPage.py @@ -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) -- 2.25.1