mementoweb / timegate

A Memento TimeGate
Other
40 stars 15 forks source link

AttributeError: 'TimeGate' object has no attribute 'cache' #21

Open skbly7 opened 8 years ago

skbly7 commented 8 years ago
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/werkzeug/local.py", line 224, in application
    return ClosingIterator(app(environ, start_response), self.cleanup)
  File "./timegate/application.py", line 290, in application
    return app(environ, start_response)
  File "./timegate/application.py", line 178, in __call__
    return self.wsgi_app(environ, start_response)
  File "./timegate/application.py", line 173, in wsgi_app
    response = self.dispatch_request(request)
  File "./timegate/application.py", line 165, in dispatch_request
    return getattr(self, endpoint)(**values)
  File "./timegate/application.py", line 230, in timegate
    mementos = self.get_all_mementos(uri_r)
  File "./timegate/application.py", line 201, in get_all_mementos
    if hasattr(self, 'cache') and request.cache_control != 'no-cache':
AttributeError: 'TimeGate' object has no attribute 'cache'

System: Ubuntu 14.10 Python 2.7.6

Command used: uwsgi --http :9999 -s /tmp/mysock.sock --module timegate.application --callable application --ini timegate/conf/config.ini