| KeyError | Python 3.7.17: /usr/local/bin/python3.7 Wed Nov 12 05:27:04 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/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', 'CD')]), ].value = [MiniFieldStorage('m', 'CD')] |
| /usr/local/python/3.7/lib/python3.7/cgi.py in __getitem__(self=FieldStorage(None, None, [MiniFieldStorage('m', 'CD')]), key='k') |
| 540 if item.name == key: found.append(item) |
| 541 if not found: |
| => 542 raise KeyError(key) |
| 543 if len(found) == 1: |
| 544 return found[0] |
| builtin KeyError = <class 'KeyError'>, key = 'k' |
KeyError: 'k'
args =
('k',)
with_traceback =
<built-in method with_traceback of KeyError object>