X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fbertos_utils.py;h=925774ba387fefe0761b66364763fb40c9a8bc9d;hb=54c0cbfcd383f860eb4d69c91eb7dee9e3615a1f;hp=cbec405d88d86d6d1289cd3dcb99c1a9ba005ccc;hpb=8afccc8e391ed3cf2cd32439441f8f6a8574eedb;p=bertos.git 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