diff --git a/doc/source/conf.py b/doc/source/conf.py index f7b841613fba41..44a5b343836988 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -79,7 +79,7 @@ try: import sphinxcontrib.spelling # noqa -except (ImportError, ModuleNotFoundError) as err: +except ImportError as err: logger.warning(('sphinxcontrib.spelling failed to import with error "{}". ' '`spellcheck` command is not available.'.format(err))) else: