diff options
author | Georg Brandl <georg@python.org> | 2013-10-02 09:25:09 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-02 09:25:09 +0200 |
commit | 1fc07fe1da0037d6ba9b03fff9815d6e7af0d03b (patch) | |
tree | f2fbdd81f452b6196a8d5c77b6eac0db86951105 /sphinx/cmdline.py | |
parent | 8fb98ed1f11f3eced19f0a4d3d06d2bf4dbebcf6 (diff) | |
download | sphinx-1fc07fe1da0037d6ba9b03fff9815d6e7af0d03b.tar.gz |
Add list of extensions to the traceback log file on unhandled exceptions.
Diffstat (limited to 'sphinx/cmdline.py')
-rw-r--r-- | sphinx/cmdline.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/cmdline.py b/sphinx/cmdline.py index 987f3005..e5ad3ab5 100644 --- a/sphinx/cmdline.py +++ b/sphinx/cmdline.py @@ -238,6 +238,7 @@ def main(argv): print >>status, 'Making output directory...' os.makedirs(outdir) + app = None try: app = Sphinx(srcdir, confdir, outdir, doctreedir, buildername, confoverrides, status, warning, freshenv, @@ -267,7 +268,7 @@ def main(argv): else: print >>error, red('Exception occurred:') print >>error, format_exception_cut_frames().rstrip() - tbpath = save_traceback() + tbpath = save_traceback(app) print >>error, red('The full traceback has been saved ' 'in %s, if you want to report the ' 'issue to the developers.' % tbpath) |