KeyError | Python 3.6.13: /usr/local/bin/python3.6 Fri Apr 26 22:44:21 2024 |
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/users/2/orfeo/web/classic_info/TDS.py in <module>() |
141 print("Content-type: text/html\n") |
142 |
=> 143 try_search_main() |
144 |
145 exit(0) |
try_search_main = <function try_search_main> |
/home/users/2/orfeo/web/classic_info/TDS.py in try_search_main() |
37 cgitb.enable() |
38 form = cgi.FieldStorage() |
=> 39 keywords_jp = form['k'].value |
40 keywords_jp = keywords_jp.strip().replace(' ','+') |
41 kind='CD' |
keywords_jp undefined, form = FieldStorage(None, None, [MiniFieldStorage('m', 'DVD')]), ].value = [MiniFieldStorage('m', 'DVD')] |
/usr/local/python/3.6/lib/python3.6/cgi.py in __getitem__(self=FieldStorage(None, None, [MiniFieldStorage('m', 'DVD')]), key='k') |
612 if item.name == key: found.append(item) |
613 if not found: |
=> 614 raise KeyError(key) |
615 if len(found) == 1: |
616 return found[0] |
builtin KeyError = <class 'KeyError'>, key = 'k' |
KeyError: 'k'
args =
('k',)
with_traceback =
<built-in method with_traceback of KeyError object>