mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fixed traceback formatting
This commit is contained in:
parent
f104a0ef20
commit
03a944d668
@ -142,7 +142,7 @@ class Worker(object):
|
||||
exc_type, exc_val, exc_tb = sys.exc_info()
|
||||
self.reloader.add_extra_file(exc_val.filename)
|
||||
|
||||
tb_string = traceback.format_exc(exc_tb)
|
||||
tb_string = traceback.format_tb(exc_tb)
|
||||
self.wsgi = util.make_fail_app(tb_string)
|
||||
finally:
|
||||
del exc_tb
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user