Skip to content

Commit f6f3dd2

Browse files
committed
Remove ModuleNotFound from try/except
1 parent 63f185e commit f6f3dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
try:
8181
import sphinxcontrib.spelling # noqa
82-
except (ImportError, ModuleNotFoundError) as err:
82+
except ImportError as err:
8383
logger.warning(('sphinxcontrib.spelling failed to import with error "{}". '
8484
'`spellcheck` command is not available.'.format(err)))
8585
else:

0 commit comments

Comments
 (0)