X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fbertos_utils.py;h=bfdcc0eefd32130df5e4b565bc752e636d31ad4f;hb=0c26b45fea2f58a6959b946af412a267fcb34f2e;hp=17794579e0ca8ab6e950c4d03ba4cf8bd6aa742f;hpb=912352d333ac869de55ea4945c03a49d163f6da4;p=bertos.git diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 17794579..bfdcc0ee 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -384,7 +384,7 @@ def loadModuleDefinition(first_comment): return to_be_parsed, module_dict def isSupported(project, module=None, property_id=None): - if module is None and property_id is not None: + if not module and property_id: item = project.info("CONFIGURATIONS")[property_id[0]][property_id[1]]["informations"] else: item = project.info("MODULES")[module]