mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
[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:
@@ -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'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user