mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
apply patch from lericson
This commit is contained in:
parent
d8baf9b30e
commit
2d760e492d
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user