Traceback (most recent call last): File "/data/www/kim/app.py", line 4715, in get self.render(tpl+'/cun_item.html',title = title_s, sid = sid, s_name = sname, qh_name = qhname, atl = atl, class_list = classlist, news_hot = news_hot, next = next, prev = prev, cun_title = cuntitle, classname = classname, a = a, reviews = reviews, timedis = timedis, islogin = islogin, isqr = str(shang[3]), ism = ism, isa = isa, thumbs = atl[10].replace('_80.jpg',''), class_url = class_url, c_list = cl, logo = logo, links = links, tel = str(shang[4].encode('utf8', 'ignore')), qq = str(shang[5].encode('utf8', 'ignore')), tl = str(shang[6].encode('utf8', 'ignore')), kw = str(shang[7].encode('utf8', 'ignore')), ds = str(shang[8].encode('utf8', 'ignore')), sheng = str(shang[9]), skin = skin, skin_list = skin_list, uclass = uclass, upath = upath, wd = wd, userid = userid, reviews_num = reviews_num[0], likes_num = likes_num[0], liked = liked, goods_explist = goods_explist, comscope = comscope, danwei = danwei, comtype = comtype, address = address, shengname = sheng, shi = shi, gid = aid, disp_reply = disp_reply, verify = verify, xiaobao = xiaobao, wx = wx, wx_ua = wx_ua, sales = sales, html = get_share(self.request.headers["User-Agent"],'http://'+self.request.host+self.request.uri)) UnboundLocalError: local variable 'sheng' referenced before assignment