From f08b2428843745bd9d15aecb4e2006f8350ece36 Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 9 Feb 2009 10:34:53 +0000 Subject: [PATCH] Correct a problema about the empty configurations git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2326 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BModulePage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index 64f9fd0b..ee713ab4 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -173,7 +173,10 @@ class BModulePage(BWizardPage): def _configurations(self, module): configuration = self._projectInfoRetrieve("MODULES")[module]["configuration"] - return self._projectInfoRetrieve("CONFIGURATIONS")[configuration] + if len(configuration) > 0: + return self._projectInfoRetrieve("CONFIGURATIONS")[configuration] + else: + return {} def _resetPropertyDescription(self): for index in range(self.pageContent.propertyTable.rowCount()): -- 2.25.1