Skip to content

Commit

Permalink
Graceful sphinxcontrib.gist failures
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Aug 4, 2016
1 parent bf1e9fd commit fe4799b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/sphinx/conf.py
Expand Up @@ -27,12 +27,12 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax']
try:
import sphinxcontrib.gist # NOQA
extensions = ['sphinxcontrib.gist', 'sphinx.ext.autodoc', 'sphinx.ext.mathjax']
except ImportError as err:
import pdb; pdb.set_trace()
extensions = []
extensions.append('sphinxcontrib.gist')
except ImportError:
pass

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down

0 comments on commit fe4799b

Please sign in to comment.