Traceback (most recent call last): File "/data/www/harar/app.py", line 2040, in get self.render(tpl+'/div_cat.html',title = title_s, kw = kw, ds = ds, n = '3', sid = qhid, qh_name = qhname, qh_title = qhtitle, biz_list = biz_list, biz0_list = biz0_list, shang = shang, news = news, c_list = cl, cl00 = cl00, chanpin = chanpin, links = links, col = col, cid = cid, cat = cat, classname = classname, sk = searchkey, class_url = class_url, url_class = url_class, class_list = classlist, rc = rc, pages = pages, div_list = div_list, btype_list = btype_list, sk_split = sk_split, prev = prev, next = next, p = p, qh_tel = qh_tel, qh_qq = qh_qq, divad = divad, qhupid = qhupid) File "/usr/lib64/python2.7/site-packages/tornado/web.py", line 719, in render html = self.render_string(template_name, **kwargs) File "/usr/lib64/python2.7/site-packages/tornado/web.py", line 826, in render_string return t.generate(**namespace) File "/usr/lib64/python2.7/site-packages/tornado/template.py", line 348, in generate return execute() File "desktop/div_cat_html.generated.py", line 628, in _tt_execute _tt_tmp = btype_list[entry[7]] # desktop/div_cat.html:27 KeyError: None