From: duplo Date: Fri, 6 Feb 2009 16:29:08 +0000 (+0000) Subject: Resolve the type undefined property X-Git-Tag: 2.1.0~374 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=9d4807e10b3ffccbee160aab1b67b13779cf6766;p=bertos.git Resolve the type undefined property git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2308 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index cbec405d..925774ba 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -212,10 +212,14 @@ def loadConfigurationInfos(path): configurationInfos[name] = {} configurationInfos[name]["value"] = value configurationInfos[name]["informations"] = informations - if configurationInfos[name]["informations"]["type"] == "int" and configurationInfos[name]["value"].find("L") != -1: + if ("type" in configurationInfos[name]["informations"].keys() and + configurationInfos[name]["informations"]["type"] == "int" and + configurationInfos[name]["value"].find("L") != -1): configurationInfos[name]["informations"]["long"] = True configurationInfos[name]["value"] = configurationInfos[name]["value"].replace("L", "") - if configurationInfos[name]["informations"]["type"] == "int" and configurationInfos[name]["value"].find("U") != -1: + if ("type" in configurationInfos[name]["informations"].keys() and + configurationInfos[name]["informations"]["type"] == "int" and + configurationInfos[name]["value"].find("U") != -1): configurationInfos[name]["informations"]["unsigned"] = True configurationInfos[name]["value"] = configurationInfos[name]["value"].replace("U", "") configurationInfos[name]["description"] = description