<type 'exceptions.KeyError'> | Python 2.6.5: /usr/bin/python Wed Apr 30 17:24:42 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.
/var/www/www.aaronsw.com/2002/googler.cgi in |
30 cgitb.enable() |
31 c = cgi.FieldStorage() |
32 q = c['q'].value |
33 r = go(q) |
34 print 'Status: 302 Helpful Redirect' |
q undefined, c = FieldStorage(None, None, [MiniFieldStorage('secret', 'on')]), ].value = [MiniFieldStorage('secret', 'on')] |
/usr/lib/python2.6/cgi.py in __getitem__(self=FieldStorage(None, None, [MiniFieldStorage('secret', 'on')]), key='q') |
539 if item.name == key: found.append(item) |
540 if not found: |
541 raise KeyError, key |
542 if len(found) == 1: |
543 return found[0] |
builtin KeyError = <type 'exceptions.KeyError'>, key = 'q' |
<type 'exceptions.KeyError'>: 'q'
args =
('q',)
message =
'q'