﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc
335,"IndexError: list index out of range, in lookup_item, line 281, eval.py",oni,cmlenz,"Whenever bots like www.google.com/bot.html crawl the site, the following error is created:

{{{
Traceback (most recent call last):
  File ""/usr/lib/python2.5/site-packages/web/webapi.py"", line 312, in wsgifunc
    result = func()
  File ""/usr/lib/python2.5/site-packages/web/request.py"", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File ""/usr/lib/python2.5/site-packages/web/request.py"", line 61, in handle
    return tocall(*([x and urllib.unquote(x) for x in args] + fna))
  File ""/var/www.pharmac/trunk/cgi-bin/website.py"", line 482, in GET
    return self._get(name, name2, name3, head)
  File ""/var/www.pharmac/trunk/cgi-bin/website.py"", line 1009, in _get
    status=status, webctx=web.ctx, environ=web.ctx.env, **args)
  File ""/var/www.pharmac/trunk/lib/template.py"", line 184, in template
    t = x.render('xhtml', doctype=genshi.output.DocType.XHTML_STRICT)
  File ""/var/lib/python-support/python2.5/genshi/core.py"", line 154, in render
    return encode(generator, method=method, encoding=encoding)
  File ""/var/lib/python-support/python2.5/genshi/output.py"", line 45, in encode
    output = u''.join(list(iterator))
  File ""/var/lib/python-support/python2.5/genshi/output.py"", line 274, in __call__
    for kind, data, pos in stream:
  File ""/var/lib/python-support/python2.5/genshi/output.py"", line 519, in __call__
    for kind, data, pos in stream:
  File ""/var/lib/python-support/python2.5/genshi/output.py"", line 679, in __call__
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File ""/var/lib/python-support/python2.5/genshi/output.py"", line 459, in __call__
    for ev in stream:
  File ""/var/lib/python-support/python2.5/genshi/core.py"", line 212, in _ensure
    for event in stream:
  File ""/var/lib/python-support/python2.5/genshi/template/markup.py"", line 297, in _match
    for event in stream:
  File ""/var/lib/python-support/python2.5/genshi/template/markup.py"", line 242, in _exec
    for event in stream:
  File ""/var/lib/python-support/python2.5/genshi/template/base.py"", line 398, in _eval
    for kind, data, pos in stream:
  File ""/var/lib/python-support/python2.5/genshi/template/base.py"", line 448, in _flatten
    for event in self._flatten(substream, ctxt):
  File ""/var/lib/python-support/python2.5/genshi/template/base.py"", line 442, in _flatten
    for event in stream:
  File ""/var/lib/python-support/python2.5/genshi/template/directives.py"", line 680, in __call__
    value = expr.evaluate(ctxt)
  File ""/var/lib/python-support/python2.5/genshi/template/eval.py"", line 136, in evaluate
    return eval(self.code, _globals, {'data': data})
  File ""<string>"", line 85, in <Expression '?'>
'''  File ""/var/lib/python-support/python2.5/genshi/template/eval.py"", line 281, in lookup_item
    return obj[key]
IndexError: list index out of range'''
}}}",defect,new,minor,0.9,General,0.5.1,,,
