Avatar

Michael's Blog

Home | Gallery | Stats | Downloads | Links | Scripts | Fuel Stats | Wiki | RSS
--> -->
 
 
<type 'exceptions.KeyError'>
Python 2.7.5: /usr/local/bin/python
Sun May 19 12:41:53 2019

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/comments.py in ()
     41 print "<div id='commentList'></div>"
     42 
=>   43 show_comments(input['article_id'].value)
     44 
     45 print "</table><br />"
show_comments = <function show_comments>, input = FieldStorage(None, None, []), ].value = []
 /usr/lib64/python2.7/cgi.py in __getitem__(self=FieldStorage(None, None, []), key='article_id')
    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 = 'article_id'

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