--> -->
 
 
KeyError
Python 3.8.10: /usr/bin/python3
Sat Jul 2 11:37:14 2022

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

 /var/www/html/results.py in <module>
     15 fields = cgi.FieldStorage()
     16 
=>   17 fileitem = fields['file']
     18 
     19 if fileitem.filename:
fileitem undefined, fields = FieldStorage(None, None, [])
 /usr/lib/python3.8/cgi.py in __getitem__(self=FieldStorage(None, None, []), key='file')
    523             if item.name == key: found.append(item)
    524         if not found:
=>  525             raise KeyError(key)
    526         if len(found) == 1:
    527             return found[0]
builtin KeyError = <class 'KeyError'>, key = 'file'

KeyError: 'file'
      args = ('file',)
      with_traceback = <built-in method with_traceback of KeyError object>