Salome HOME
Improve test procedure for source, patch and prepare commands
[tools/sat.git] / src / product.py
index 6ac6ee9d36c59dd7aa63b298608066cc61f9fbae..ec2f7547758ef3eab496c6f104b15a077959ee15 100644 (file)
@@ -152,8 +152,11 @@ def product_is_sample(product_info):
     :return: True if the product has the sample type, else False
     :rtype: boolean
     '''
-    ptype = product_info.type
-    return ptype.lower() == 'sample'
+    if 'type' in product_info:
+        ptype = product_info.type
+        return ptype.lower() == 'sample'
+    else:
+        return False
 
 def product_is_fixed(product_info):
     '''Know if a product is fixed