[polly] r303982 - [Docs] Fix exception name being caught in case ReadTheDocs does not exist.
Siddharth Bhat via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 05:56:35 PDT 2017
Author: bollu
Date: Fri May 26 07:56:35 2017
New Revision: 303982
URL: http://llvm.org/viewvc/llvm-project?rev=303982&view=rev
Log:
[Docs] Fix exception name being caught in case ReadTheDocs does not exist.
The exception is `ImportError`, not `ModuleNotFoundError`.
Modified:
polly/trunk/docs/conf.py
Modified: polly/trunk/docs/conf.py
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/docs/conf.py?rev=303982&r1=303981&r2=303982&view=diff
==============================================================================
--- polly/trunk/docs/conf.py (original)
+++ polly/trunk/docs/conf.py Fri May 26 07:56:35 2017
@@ -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'
More information about the llvm-commits
mailing list