diff --git a/product.py b/product.py index 1320985..41d5731 100644 --- a/product.py +++ b/product.py @@ -438,7 +438,7 @@ def create_using_magento_data( context=context ).id else: - category_id, = category_obj.search(cursor, user, [ + category_id,sub_category_id = category_obj.search(cursor, user, [ ('name', '=', 'Unclassified Magento Products') ], context=context)