I had my web app here for a long time and checked it periodically. A few weeks ago I noticed it was down and today I tried getting it to work but cant. I even reuploaded the entire project and tested in localhost that it worked fine with the exact same code, I am getting this error
2014-01-22 03:09:46,770 :Starting new HTTP connection (1): proxy.server
2014-01-22 03:09:46,992 :Exception on / [GET]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1687, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1360, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1358, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1344, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/droidBehavior/mysite/routes.py", line 41, in index
pic = j['data']['children'][rand]['data']['url']
KeyError: 'data'
the weird thing is when I change the code at the error it doesn't reflect that change and the error log is always the same even if I delete the row pic=j.... it still says error at pic = j