Edgewall Software

Opened 15 years ago

Last modified 7 years ago

#335 new defect

IndexError: list index out of range, in lookup_item, line 281, eval.py — at Initial Version

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

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.