<type 'exceptions.KeyError'> | Python 2.7.5: /usr/local/bin/python Fri May 3 10:02:22 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_detail.cgi in |
1 #!/usr/local/bin/python |
2 from products_detail import show |
3 print "Content-Type: text/html" |
4 print "" |
=> 5 show() |
show = <function show> |
/usr/home/mw2pfpdbzm/www/htdocs/products/products_detail.py in show() |
32 vars = {} |
33 for i in itemlist: |
=> 34 if(isinstance(d[i],list)): |
35 vars[i] = ','.join(map(lambda x:htmlesc(x),d[i])) |
36 else: |
builtin isinstance = <built-in function isinstance>, d = {'category': [], 'code': '', 'group': [], 'id': '', 'lastupdate': '1970/01/01 00:00:00', 'link': [], 'name': '', 'newprice': '', 'price': '', 'relation': [], ...}, i = 'title', builtin list = <type 'list'> |
<type 'exceptions.KeyError'>: 'title'
args =
('title',)
message =
'title'