--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.3: /usr/bin/python
Sun Nov 17 19:37:58 2019

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

 /data/project/cadastre.openstreetmap.fr/fantoir/requete_fantoir.py in ()
     82 
     83         a = json.JSONEncoder().encode(data)
     84         print(a)
     85 if __name__ == '__main__':
=>   86     main()
main = <function main>
 /data/project/cadastre.openstreetmap.fr/fantoir/requete_fantoir.py in main()
     46         pgc = get_pgc()
     47         params = cgi.FieldStorage()
=>   48         insee_com = params['insee'].value
     49         cadastre_com = get_code_cadastre_from_insee(insee_com)
     50         dept = get_code_dept_from_insee(insee_com)
insee_com undefined, params = FieldStorage(None, None, []), ].value = []
 /usr/lib/python2.7/cgi.py in __getitem__(self=FieldStorage(None, None, []), key='insee')
    539             if item.name == key: found.append(item)
    540         if not found:
=>  541             raise KeyError, key
    542         if len(found) == 1:
    543             return found[0]
builtin KeyError = <type 'exceptions.KeyError'>, key = 'insee'

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