Correct if caluses
[bertos.git] / wizard / bertos_utils.py
index 17794579e0ca8ab6e950c4d03ba4cf8bd6aa742f..bfdcc0eefd32130df5e4b565bc752e636d31ad4f 100644 (file)
@@ -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]