Skip to content

Commit

Permalink
Merge pull request benoitc#1235 from MarSoft/fix-traceback
Browse files Browse the repository at this point in the history
Fixed traceback formatting for syntax errors
  • Loading branch information
tilgovi committed Mar 24, 2016
2 parents f38451e + 74c2ac2 commit f9c028b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gunicorn/workers/base.py
Expand Up @@ -142,7 +142,7 @@ def load_wsgi(self):
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
Expand Down

0 comments on commit f9c028b

Please sign in to comment.