diff --git a/docs/source/history.rst b/docs/source/history.rst index e68c72e..8249907 100644 --- a/docs/source/history.rst +++ b/docs/source/history.rst @@ -30,6 +30,12 @@ Next - Modernize packaging using setuptools, build, and setuptools_scm instead of pbr. +Bug Fixes +--------- + +- `#229 `__ Gracefully + handle if git is not installed + 7.7.0 ===== diff --git a/sphinxcontrib/spelling/filters.py b/sphinxcontrib/spelling/filters.py index e9265df..60d9024 100644 --- a/sphinxcontrib/spelling/filters.py +++ b/sphinxcontrib/spelling/filters.py @@ -245,7 +245,7 @@ def _get_contributors(self): try: p = subprocess.run(cmd, check=True, stdout=subprocess.PIPE) - except subprocess.CalledProcessError as err: + except (subprocess.CalledProcessError, FileNotFoundError) as err: logger.warning('Called: %s', ' '.join(cmd)) logger.warning('Failed to scan contributors: %s', err) return set()