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

Re: wsgi silently swallows errors

2009-01-19 Thread Graham Dumpleton
On Jan 20, 8:03 am, Jean-Paul Calderone wrote: > On Mon, 19 Jan 2009 12:15:29 -0800, Ron Garret 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" > >

Re: wsgi silently swallows errors

2009-01-19 Thread Jean-Paul Calderone
On Mon, 19 Jan 2009 12:15:29 -0800, Ron Garret 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 "hello" and an error m

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 othe