diff --git a/app/api/services/web_contents.py b/app/api/services/web_contents.py index 265237d..e8a361b 100644 --- a/app/api/services/web_contents.py +++ b/app/api/services/web_contents.py @@ -60,7 +60,7 @@ class WebContentsService(BaseService): "added": membersSubResult.added, } - if membersSubResult.colorstyle !='': + if membersSubResult.colorstyle is not None and membersSubResult.colorstyle !='': # is this a valid olor scheme colorStyle = ProductsColorStyle.get_colorstyle_by_product_id_and_uid(membersSubResult.product_id, membersSubResult.colorstyle) if colorStyle and colorStyle.color_style != '':