diff options
| author | Georg Brandl <georg@python.org> | 2014-01-13 08:47:39 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-01-13 08:47:39 +0100 |
| commit | c80cde76a09242c3923672b5a944b64e4da03984 (patch) | |
| tree | 4d59d5ebffc1c1f53e0c41b258aeaf83e1997cc9 /sphinx | |
| parent | 8aec27617e3ba2bf13ba9f96bb6fa57602f13b91 (diff) | |
| download | sphinx-c80cde76a09242c3923672b5a944b64e4da03984.tar.gz | |
When an extension fails to import, give the original traceback with -v
Diffstat (limited to 'sphinx')
| -rw-r--r-- | sphinx/application.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index 57af69c5..751f39b5 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -15,6 +15,7 @@ import os import sys import types import posixpath +import traceback from os import path from cStringIO import StringIO @@ -282,6 +283,7 @@ class Sphinx(object): try: mod = __import__(extension, None, None, ['setup']) except ImportError, err: + self.verbose('Original exception:\n' + traceback.format_exc()) raise ExtensionError('Could not import extension %s' % extension, err) if not hasattr(mod, 'setup'): |
