<type 'exceptions.KeyError'> | Python 2.7.5: /usr/local/bin/python Wed May 15 12:14:42 2024 |
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/products/products_select.cgi in |
1 #!/usr/local/bin/python |
2 from products_select import show |
3 print "Content-Type: text/html" |
4 print "" |
=> 5 show() |
show = <function show> |
/usr/home/mw2pfpdbzm/www/htdocs/products/products_select.py in show(htmlfile='products-select.html') |
43 gvars['categoryname'] = htmlesc(category['name']) |
44 for i in ("description","keyword","tag1","tag2","tag3","title"): |
=> 45 gvars[i] = htmlesc(category[i]) |
46 else: |
47 gvars['category'] = '' |
gvars = {'category': u'1243F84A', 'categoryname': ''}, i = 'description', global htmlesc = <function htmlesc>, category = {'id': u'1243F84A', 'name': '', 'priority': 999} |
<type 'exceptions.KeyError'>: 'description'
args =
('description',)
message =
'description'