fix product type key access

This commit is contained in:
Jakub Trllo 2024-04-18 10:26:20 +02:00
parent 646c0df474
commit 3d496be7c6

View file

@ -1468,7 +1468,9 @@ class PlaceholderLoadMixin(object):
product_name_regex = None
if product_name_regex_value:
product_name_regex = re.compile(product_name_regex_value)
product_type = placeholder.data["family"]
product_type = placeholder.data.get("product_type")
if product_type is None:
product_type = placeholder.data.get("family")
builder_type = placeholder.data["builder_type"]
folder_ids = []