[Docs] Fix exception name being caught in case ReadTheDocs does not exist.

The exception is `ImportError`, not `ModuleNotFoundError`.

llvm-svn: 303982
This commit is contained in:
Siddharth Bhat
2017-05-26 12:56:35 +00:00
parent 7d5f12185a
commit c56a355a35

View File

@@ -96,7 +96,7 @@ try:
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
except ModuleNotFoundError:
except ImportError:
html_theme = 'haiku'