<type 'exceptions.KeyError'>
Python 2.7.18: /usr/bin/python
Fri Dec 5 21:03:15 2025

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/cultiveduca/ce1.dados.eti.br/fcgi.py in run(self=<fcgi.Request object>)
    578         """Runs the handler, flushes the streams, and ends the request."""
    579         try:
=>  580             protocolStatus, appStatus = self.server.handler(self)
    581         except:
    582             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <fcgi.Request object>, self.server = <fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <fcgi.WSGIServer object>>
 /home/cultiveduca/ce1.dados.eti.br/fcgi.py in handler(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>)
   1264         try:
   1265             try:
=> 1266                 result = self.application(environ, start_response)
   1267                 try:
   1268                     for data in result:
result = None, self = <fcgi.WSGIServer object>, self.application = <function myapp>, environ = {'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/home/cultiveduca/ce1.dados.eti.br', 'CONTEXT_PREFIX': '', 'DH_USER': 'cultiveduca', 'DOCUMENT_ROOT': '/home/cultiveduca/ce1.dados.eti.br', 'GATEWAY_INTERFACE': 'CGI/1.1', 'H2PUSH': 'off', 'H2_PUSH': 'off', 'H2_PUSHED': '', 'H2_PUSHED_ON': '', ...}, start_response = <function start_response>
 /home/cultiveduca/ce1.dados.eti.br/root.fcgi in myapp(environ={'CONTENT_LENGTH': '0', 'CONTEXT_DOCUMENT_ROOT': '/home/cultiveduca/ce1.dados.eti.br', 'CONTEXT_PREFIX': '', 'DH_USER': 'cultiveduca', 'DOCUMENT_ROOT': '/home/cultiveduca/ce1.dados.eti.br', 'GATEWAY_INTERFACE': 'CGI/1.1', 'H2PUSH': 'off', 'H2_PUSH': 'off', 'H2_PUSHED': '', 'H2_PUSHED_ON': '', ...}, start_response=<function start_response>)
    336         if r.url.startswith('/estado.') and r.url.split('.')[-1] in ['AC', 'AL', 'AM', 'AP', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MG', 'MS', 'MT', 'PA', 'PB', 'PE', 'PI', 'PR', 'RJ', 'RN', 'RO', 'RR', 'RS', 'SC', 'SE', 'SP', 'TO']:
    337                 e = r.url.split('.')[-1]
=>  338                 return [base.format(title="Estado "+e,content=dMapa(est[e], e)+aBr()+aEst(e))]
    339         if r.url.startswith('/cidade.') and r.url.split('.')[-1] in cid:
    340                 c = r.url.split('.')[-1]
global base = '<html>\n\t<head>\n\t\t<link rel="stylesheet" type="te...do INEP.</p>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n', base.format = <built-in method format of str object>, title undefined, e = 'DF', content undefined, global dMapa = <function dMapa>, global est = {'BA': {'fc_pre_esc_p': '4.50%', 'fc_div_sex_p':...c_dir_adolesc_p': '0.54%', 'genero_p': '17.36%'}}, global aBr = <function aBr>, global aEst = <function aEst>
 /usr/lib/python2.7/shelve.py in __getitem__(self={'BA': {'fc_pre_esc_p': '4.50%', 'fc_div_sex_p':...c_dir_adolesc_p': '0.54%', 'genero_p': '17.36%'}}, key='DF')
    119             value = self.cache[key]
    120         except KeyError:
=>  121             f = StringIO(self.dict[key])
    122             value = Unpickler(f).load()
    123             if self.writeback:
f undefined, global StringIO = <built-in function StringIO>, self = {'BA': {'fc_pre_esc_p': '4.50%', 'fc_div_sex_p':...c_dir_adolesc_p': '0.54%', 'genero_p': '17.36%'}}, self.dict = {'BA': "(dp1\nS'fc_pre_esc_p'\np2\nS'4.50%'\np3\...\np359\nsS'genero_p'\np360\nS'17.36%'\np361\ns."}, key = 'DF'
 /usr/lib/python2.7/bsddb/__init__.py in __getitem__(self={'BA': "(dp1\nS'fc_pre_esc_p'\np2\nS'4.50%'\np3\...\np359\nsS'genero_p'\np360\nS'17.36%'\np361\ns."}, key='DF')
    268     def __getitem__(self, key):
    269         self._checkOpen()
=>  270         return _DeadlockWrap(lambda: self.db[key])  # self.db[key]
    271 
    272     def __setitem__(self, key, value):
global _DeadlockWrap = <function DeadlockWrap>, self = {'BA': "(dp1\nS'fc_pre_esc_p'\np2\nS'4.50%'\np3\...\np359\nsS'genero_p'\np360\nS'17.36%'\np361\ns."}, self.db = <DB object>, key = 'DF'
 /usr/lib/python2.7/bsddb/dbutils.py in DeadlockWrap(function=<function <lambda>>, *_args=(), **_kwargs={})
     66     while True:
     67         try:
=>   68             return function(*_args, **_kwargs)
     69         except db.DBLockDeadlockError:
     70             if _deadlock_VerboseFile:
function = <function <lambda>>, _args = (), _kwargs = {}
 /usr/lib/python2.7/bsddb/__init__.py in <lambda>()
    268     def __getitem__(self, key):
    269         self._checkOpen()
=>  270         return _DeadlockWrap(lambda: self.db[key])  # self.db[key]
    271 
    272     def __setitem__(self, key, value):
global _DeadlockWrap = <function DeadlockWrap>, self = {'BA': "(dp1\nS'fc_pre_esc_p'\np2\nS'4.50%'\np3\...\np359\nsS'genero_p'\np360\nS'17.36%'\np361\ns."}, self.db = <DB object>, key = 'DF'

<type 'exceptions.KeyError'>: 'DF'
      args = ('DF',)
      message = 'DF'