Traceback (most recent call last): File "/data/www/govz/app.py", line 982, in get self.render(tpl+'/div.html',title = tt, kw = kw, ds = ds, entries = entries, city = city, qhname = qhname, qhtype = qhtype, qhupname = qhupname, n = '3', sk = '', thumbs = '', html = get_share(self.request.headers["User-Agent"],'http://'+self.request.host+self.request.uri)) UnboundLocalError: local variable 'tt' referenced before assignment