From 9d4807e10b3ffccbee160aab1b67b13779cf6766 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 6 Feb 2009 16:29:08 +0000 Subject: [PATCH] Resolve the type undefined property git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2308 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 -- 2.25.1