No, I am doing /foo/, I get redirect to /bar/ and I get the error.
running Juno development server, <C-c> to exit...
connect to
127.0.0.1:8090 to use your app...
GET request for /foo/...
/foo/ matches, calling foo()...
192.168.1.4 - - [24/Mar/2009 23:52:09] "GET /foo/ HTTP/1.1" 302 0
GET request for /bar/...
/bar/ matches, calling bar()...
Error: (<type 'exceptions.KeyError'>, 'msg', <traceback object at
0x8d96324>)
Traceback (most recent call last):
File "/usr/lib/python2.6/wsgiref/handlers.py", line 93, in run
self.result = application(self.environ, self.start_response)
File "/usr/lib/python2.6/site-packages/Beaker-1.2.3-py2.6.egg/beaker/
middleware.py", line 160, in __call__
return self.wrap_app(environ, session_start_response)
File "/home/ashish/test/juno.py", line 724, in application
**environ)
File "/home/ashish/test/juno.py", line 200, in request
return servererror(error=cgi.escape(str(sys.exc_info()))).render()
File "/home/ashish/test/juno.py", line 506, in servererror
return template(file, error=error)
File "/home/ashish/test/juno.py", line 543, in template
t = get_template(template_path)
File "/home/ashish/test/juno.py", line 557, in get_template
return config('get_template_handler')(template_path)
File "/home/ashish/test/juno.py", line 565, in _get_template_handler
return config('template_env').get_template(template_path)
AttributeError: 'NoneType' object has no attribute 'get_template'
192.168.1.4 - - [24/Mar/2009 23:52:09] "GET /bar/ HTTP/1.1" 500 59
I am on
Linux getafix 2.6.28-ARCH #1 SMP PREEMPT Sun Feb 22 11:03:50 UTC 2009
i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux
Python 2.6.1 (r261:67515, Dec 7 2008, 08:27:41)
[GCC 4.3.2] on linux2
And using Beaker-1.2.3
Is there anything I can test or do to debug this issue?
Ashish