@@ -115,11 +115,12 @@ todo_include_todos = True
115115html_theme = "default"
116116
117117if not on_rtd: # only import and set the theme if we're building docs locally
118− import sphinx_rtd_theme
119− html_theme = 'sphinx_rtd_theme'
120− html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
121−
122−
118+ try:
119+ import sphinx_rtd_theme
120+ html_theme = 'sphinx_rtd_theme'
121+ html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
122+ except ImportError:
123+ html_theme = "default"
123124
124125# Theme options are theme-specific and customize the look and feel of a theme
125126# further. For a list of options available for each theme, see the