wsgi silently swallows errors

2009-01-19 Thread Ron Garret
Consider the following wsgi app: def application(env, start_response): start_response('200 OK',[('Content-type','text/plain')]) yield hello x=1/0 yield world The result of this is that the web browser displays hello and an error message ends up in the web log. But there is no other

Re: wsgi silently swallows errors

2009-01-19 Thread Jean-Paul Calderone
On Mon, 19 Jan 2009 12:15:29 -0800, Ron Garret rnospa...@flownet.com wrote: Consider the following wsgi app: def application(env, start_response): start_response('200 OK',[('Content-type','text/plain')]) yield hello x=1/0 yield world The result of this is that the web browser displays

Re: wsgi silently swallows errors

2009-01-19 Thread Graham Dumpleton
On Jan 20, 8:03 am, Jean-Paul Calderone exar...@divmod.com wrote: On Mon, 19 Jan 2009 12:15:29 -0800, Ron Garret rnospa...@flownet.com wrote: Consider the following wsgi app: def application(env, start_response):  start_response('200 OK',[('Content-type','text/plain')])  yield hello  

Re: wsgi silently swallows errors

2009-01-19 Thread Дамјан Георгиевски
Consider the following wsgi app: def application(env, start_response): start_response('200 OK',[('Content-type','text/plain')]) yield hello x=1/0 yield world The result of this is that the web browser displays hello and an error message ends up in the web log. But there is