apply patch from lericson

This commit is contained in:
Benoit Chesneau 2010-02-12 14:37:55 +01:00
parent d8baf9b30e
commit 2d760e492d

View File

@ -142,6 +142,9 @@ class Worker(object):
try:
response = self.app(req.read(), req.start_response)
except Exception, e:
# Only send back traceback in HTTP in debug mode.
if not self.debug:
raise
util.write_error(client, traceback.format_exc())
return