Edgewall Software

Ticket #335 (new defect)

Opened 5 years ago

Last modified 5 years ago

IndexError: list index out of range, in lookup_item, line 281, eval.py

Reported by: oni Owned by: cmlenz
Priority: minor Milestone: 0.7
Component: General Version: 0.5.1
Keywords: Cc:

Description (last modified by cmlenz) (diff)

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'''

Attachments

Change History

Changed 5 years ago by cmlenz

  • milestone changed from 0.5.2 to 0.6

Milestone 0.5.2 deleted

Changed 5 years ago by cmlenz

  • milestone changed from 0.6 to 0.7

Changed 5 years ago by cmlenz

  • description modified (diff)

Add/Change #335 (IndexError: list index out of range, in lookup_item, line 281, eval.py)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cmlenz. Next status will be 'new'
The owner will change from cmlenz to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.