bitcoin-abe / bitcoin-abe

Abe: block browser for Bitcoin and similar currencies
GNU Affero General Public License v3.0
980 stars 653 forks source link

local variable 'tvars' referenced before assignment #71

Open MatthewLM opened 10 years ago

MatthewLM commented 10 years ago

I get this error:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/flup/server/fcgi_base.py", line 558, in run
    protocolStatus, appStatus = self.server.handler(self)
  File "/usr/lib/pymodules/python2.7/flup/server/fcgi_base.py", line 1118, in handler
    result = self.application(environ, start_response)
  File "/usr/local/lib/python2.7/dist-packages/Abe/abe.py", line 270, in __call__
    tvars['title'] = flatten(page['title'])
UnboundLocalError: local variable 'tvars' referenced before assignment
MatthewLM commented 10 years ago

How do I overwrite the installed Abe? sudo python setup.py install --force doesn't appear to work. I guess I can run Abe without using setup.py?

MatthewLM commented 10 years ago

I've fixed it. I also figured that you need to restart apache to refresh the python script. I'll submit a pull request later.