KeyError | Python 3.10.12: /usr/bin/python3 Tue Sep 17 14:57:29 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.
/data/www/public_html/submission_system/finalize.py in <module> |
25 |
26 # Get filename here. |
=> 27 fileitem = form['filename'] |
28 subid = form["ID"].value |
29 |
fileitem undefined, form = FieldStorage(None, None, []) |
/usr/lib/python3.10/cgi.py in __getitem__(self=FieldStorage(None, None, []), key='filename') |
526 if item.name == key: found.append(item) |
527 if not found: |
=> 528 raise KeyError(key) |
529 if len(found) == 1: |
530 return found[0] |
builtin KeyError = <class 'KeyError'>, key = 'filename' |
KeyError: 'filename'
args =
('filename',)
with_traceback =
<built-in method with_traceback of KeyError object>