Merge pull request #1235 from MarSoft/fix-traceback

Fixed traceback formatting for syntax errors
This commit is contained in:
Randall Leeds 2016-03-24 14:15:18 -07:00
commit 3b0529d5a9

View File

@ -142,7 +142,7 @@ class Worker(object):
exc_type, exc_val, exc_tb = sys.exc_info() exc_type, exc_val, exc_tb = sys.exc_info()
self.reloader.add_extra_file(exc_val.filename) 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) self.wsgi = util.make_fail_app(tb_string)
finally: finally:
del exc_tb del exc_tb