<type 'exceptions.KeyError'> | Python 2.7.12: /usr/bin/python Mon Jul 24 15:11:39 2017 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/etc/bonito/run.cgi in |
71 if not os.environ.has_key ('MANATEE_REGISTRY'): |
72 os.environ['MANATEE_REGISTRY'] = '/var/lib/manatee/registry' |
=> 73 if ";prof=" in os.environ['REQUEST_URI'] or "&prof=" in os.environ['REQUEST_URI']: |
74 import cProfile, pstats, tempfile |
75 proffile = tempfile.NamedTemporaryFile() |
os = <module 'os' from '/usr/lib/python2.7/os.pyc'>, os.environ = {'LANG': 'fr_FR.UTF-8', 'TERM': 'screen', 'SHELL...00', '_': '/etc/bonito/run.cgi', 'EDITOR': 'vim'} |
/usr/lib/python2.7/UserDict.py in __getitem__(self={'LANG': 'fr_FR.UTF-8', 'TERM': 'screen', 'SHELL...00', '_': '/etc/bonito/run.cgi', 'EDITOR': 'vim'}, key='REQUEST_URI') |
38 if hasattr(self.__class__, "__missing__"): |
39 return self.__class__.__missing__(self, key) |
=> 40 raise KeyError(key) |
41 def __setitem__(self, key, item): self.data[key] = item |
42 def __delitem__(self, key): del self.data[key] |
builtin KeyError = <type 'exceptions.KeyError'>, key = 'REQUEST_URI' |
<type 'exceptions.KeyError'>: 'REQUEST_URI'
args =
('REQUEST_URI',)
message =
'REQUEST_URI'