500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 630, in respond
    self._do_respond(path_info)
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cprequest.py", line 689, in _do_respond
    response.body = self.handler()
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/encoding.py", line 221, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "rosa.py", line 48, in index
    language = self.set_language()
  File "rosa.py", line 56, in set_language
    language = cherrypy.request.headers['ACCEPT-LANGUAGE'][0:2]
  File "/usr/local/lib/python2.7/dist-packages/cherrypy/lib/httputil.py", line 419, in __getitem__
    return super(KeyTransformingDict, self).__getitem__(key)
KeyError: 'Accept-Language'
Powered by CherryPy 17.4.1