From ab573ce0c759f15d8bed2ad7bf48a2abe071e80d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 21 Dec 2012 11:01:31 +0530 Subject: [PATCH] fixes in website --- website/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/utils.py b/website/utils.py index 2954556a8f..079ad21e02 100644 --- a/website/utils.py +++ b/website/utils.py @@ -202,7 +202,7 @@ def get_outer_env(): t['child_items'].append(d) break - if top_items and ("products" in [d.url.split(".")[0] for d in top_items]): + if top_items and ("products" in [d.url.split(".")[0] for d in top_items if d.url]): # product categories products = webnotes.conn.sql("""select t1.item_group as label, concat(t2.page_name, ".html") as url,