File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 79
79
80
80
try :
81
81
import sphinxcontrib .spelling # noqa
82
- except ImportError as err :
83
- logger .warn (('sphinxcontrib.spelling failed to import with error "{}". '
84
- '`spellcheck` command is not available.' .format (err )))
82
+ except ( ImportError , ModuleNotFoundError ) as err :
83
+ logger .warning (('sphinxcontrib.spelling failed to import with error "{}". '
84
+ '`spellcheck` command is not available.' .format (err )))
85
85
else :
86
86
extensions .append ('sphinxcontrib.spelling' )
87
87
88
88
exclude_patterns = ['**.ipynb_checkpoints' ]
89
89
90
- # Tries to import sphixcontrib.spelling - if not available pass
91
- try :
92
- import sphinxcontrib .spelling
93
- extensions .append ('sphinxcontrib.spelling' )
94
- spelling_word_list_filename = ['spelling_wordlist.txt' , 'names_wordlist.txt' ]
95
- spelling_ignore_pypi_package_names = True
96
- except ModuleNotFoundError :
97
- pass
98
90
99
91
with open ("index.rst" ) as f :
100
92
index_rst_lines = f .readlines ()
You can’t perform that action at this time.
0 commit comments