summaryrefslogtreecommitdiff
path: root/sphinx/setup_command.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-12-12 11:17:55 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-12-12 11:18:25 +0900
commit3c734e5b2db4861471ed5fbf664a48ab1c1719c9 (patch)
treee0270d6bcbe24db2f25bae44d11e9aabb1497d8b /sphinx/setup_command.py
parentbf5fd395d7eb3af4ea64a00c78fe51bea0751033 (diff)
downloadsphinx-git-3c734e5b2db4861471ed5fbf664a48ab1c1719c9.tar.gz
Fix #3228: ``build_sphinx`` command crashes when missing dependency
Diffstat (limited to 'sphinx/setup_command.py')
-rw-r--r--sphinx/setup_command.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py
index c23f22228..0c49b0e89 100644
--- a/sphinx/setup_command.py
+++ b/sphinx/setup_command.py
@@ -165,6 +165,7 @@ class BuildDoc(Command):
if self.copyright:
confoverrides['copyright'] = self.copyright
+ app = None
try:
with docutils_namespace():
app = Sphinx(self.source_dir, self.config_dir,