--> --> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.6: S:\Python27\python.exe
Sun Oct 22 11:39:07 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.

 W:\sites\ron\_RIJBLIJ_cgi-ron\fq.py in ()
    864 # -------------------------------------------------
    865 
    866 if __name__ == "__main__":
=>  867     qz_main()    
    868     #test()
qz_main = <function qz_main>
 W:\sites\ron\_RIJBLIJ_cgi-ron\fq.py in qz_main()
    846 
    847 def qz_main():
=>  848     print qz_render(qz_dispatch(qz_request()))
    849     # test without server
    850     #print qz_render(qz_dispatch({'a':'qnew'}))     # newquiz with all themes
global qz_render = <function qz_render>, global qz_dispatch = <function qz_dispatch>, global qz_request = <function qz_request>
 W:\sites\ron\_RIJBLIJ_cgi-ron\fq.py in qz_dispatch(FieldValues={'a': 'qnxt', 'o': '0', 's': 'FQ142966971035614', 't': []})
    532             #qindex=sesdata[ci_vardict][ci_vardict][cs_activeQuiz]       #global dictionary
    533             #sesdata[ci_vardict][qindex][cs_activeItem]=itemnum-1
=>  534             return(qzprocess_nextitem(sesdata,answer))
    535         # changeLanguage (IF in a Quiz: changes interface language ELSE LATER change test-language FI)
    536         if action=='qlan':
global qzprocess_nextitem = <function qzprocess_nextitem>, sesdata = [[{'AL': 'nl', 'AQ': 0, 'FD': {'en': [], 'nl': []}, 'QL': 15, 'RP': 'startNew', 'SI': 'FQ142966971035614', 'ST': '<b>STATS TO COME</b>'}]], answer = '0'
 W:\sites\ron\_RIJBLIJ_cgi-ron\fq.py in qzprocess_nextitem(sesdata=[[{'AL': 'nl', 'AQ': 0, 'FD': {'en': [], 'nl': []}, 'QL': 15, 'RP': 'startNew', 'SI': 'FQ142966971035614', 'ST': '<b>STATS TO COME</b>'}]], answer='0')
    314     qindex=sesdata[ci_vardict][ci_vardict][cs_activeQuiz]       #global dictionary
    315     qlength=sesdata[ci_vardict][qindex][cs_quizLength]          #local dict
=>  316     currentitem=sesdata[ci_vardict][qindex][cs_activeItem]
    317     currentlanguage=sesdata[ci_vardict][qindex][cs_activeLanguage]
    318     # What to do?
currentitem undefined, sesdata = [[{'AL': 'nl', 'AQ': 0, 'FD': {'en': [], 'nl': []}, 'QL': 15, 'RP': 'startNew', 'SI': 'FQ142966971035614', 'ST': '<b>STATS TO COME</b>'}]], global ci_vardict = 0, qindex = 0, global cs_activeItem = 'AI'

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