The Wayback Machine - https://web.archive.org/web/20081207102744/http://nytimes.blogspace.com:80/genlink
--> --> -->
 
 
KeyError
Python 2.4.4: /usr/bin/python
Fri Dec 5 15:14:23 2008

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/nytimes.blogspace.com/genlink.cgi
    4 f = cgi.FieldStorage()
    5 r = f.has_key('redirect')
    6 q = f['q'].value
    7 from nytutils import cleanLink
    8 
q undefined, f = FieldStorage(None, None, []), ].value = []
 /var/www/nytimes.blogspace.com/cgi.py in __getitem__(self=FieldStorage(None, None, []), key='q')
  561             if item.name == key: found.append(item)
  562         if not found:
  563             raise KeyError, key
  564         if len(found) == 1:
  565             return found[0]
builtin KeyError = <class exceptions.KeyError>, key = 'q'

KeyError: 'q'
      args = ('q',)