wsgi silently swallows errors

Ron Garret rNOSPAMon at
Mon Jan 19 21:15:29 CET 2009

Consider the following wsgi app:

def application(env, start_response):
  start_response('200 OK',[('Content-type','text/plain')])
  yield "hello"
  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 indication that 
an error has occurred.

Is there any way to get WSGI to not silently swallow errors that occur 
after start_response has been called?


More information about the Python-list mailing list