If I start the following app, and go to /err, I get an IndexError. Am
I doing something wrong?
import web
URLS = (
'/err', 'err',
)
app = web.application(URLS, globals())
class err():
def GET(self):
raise app.internalerror()
if __name__ == '__main__': app.run()
Error produced:
Traceback (most recent call last):
File "/tmp/karma/lib/python2.6/site-packages/web/application.py",
line 237, in process
return self.handle()
File "/tmp/karma/lib/python2.6/site-packages/web/application.py",
line 228, in handle
return self._delegate(fn, self.fvars, args)
File "/tmp/karma/lib/python2.6/site-packages/web/application.py",
line 409, in _delegate
return handle_class(cls)
File "/tmp/karma/lib/python2.6/site-packages/web/application.py",
line 385, in handle_class
return tocall(*args)
File "/vic/dev/temp-karma/karmaweb/__init__.py", line 12, in GET
raise app.internalerror()
File "/tmp/karma/lib/python2.6/site-packages/web/application.py",
line 467, in internalerror
return debugerror.debugerror()
File "/tmp/karma/lib/python2.6/site-packages/web/debugerror.py",
line 305, in debugerror
return web._InternalError(djangoerror())
File "/tmp/karma/lib/python2.6/site-packages/web/debugerror.py",
line 295, in djangoerror
return t(exception_type, exception_value, frames)
File "/tmp/karma/lib/python2.6/site-packages/web/template.py", line
880, in __call__
return BaseTemplate.__call__(self, *a, **kw)
File "/tmp/karma/lib/python2.6/site-packages/web/template.py", line
807, in __call__
return self.t(*a, **kw)
File "/tmp/karma/lib/python2.6/site-packages/web/debugerror.pyc",
line 142, in __template__
<h2>$exception_value</h2>
IndexError: list index out of range
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.