Avatar

Michael's Blog

Home | Gallery | Stats | Downloads | Links | Scripts | Fuel Stats | Wiki | RSS
Quote:
This function sucks!
-- Mike N.     Add quote.
--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.5: /usr/local/bin/python
Thu Dec 13 00:01:57 2018

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/wattersm/public_html/viewtag.py in ()
     28   common.show_stories(tagname)
     29 
     30   print "</div>\n"
     31 
=>   32 main()
main = <function main>
 /home/wattersm/public_html/viewtag.py in main()
     17 
     18   input = cgi.FieldStorage()
=>   19   tagname = input['tag'].value
     20 
     21   print "<script type='text/javascript'>"
tagname undefined, input = FieldStorage(None, None, []), ].value = []
 /usr/lib64/python2.7/cgi.py in __getitem__(self=FieldStorage(None, None, []), key='tag')
    538             if item.name == key: found.append(item)
    539         if not found:
=>  540             raise KeyError, key
    541         if len(found) == 1:
    542             return found[0]
builtin KeyError = <type 'exceptions.KeyError'>, key = 'tag'

<type 'exceptions.KeyError'>: 'tag'
      args = ('tag',)
      message = 'tag'