Skip to content

Commit 65a9b84

Browse files
authored
Merge pull request #229 from blmaier/fix-git-missing
gracefully handle if git is not installed
2 parents 13ac4cc + 7b10eea commit 65a9b84

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

docs/source/history.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ Next
3030
- Modernize packaging using setuptools, build, and setuptools_scm
3131
instead of pbr.
3232

33+
Bug Fixes
34+
---------
35+
36+
- `#229 <https://github.com/sphinx-contrib/spelling/pull/229>`__ Gracefully
37+
handle if git is not installed
38+
3339
7.7.0
3440
=====
3541

sphinxcontrib/spelling/filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def _get_contributors(self):
245245

246246
try:
247247
p = subprocess.run(cmd, check=True, stdout=subprocess.PIPE)
248-
except subprocess.CalledProcessError as err:
248+
except (subprocess.CalledProcessError, FileNotFoundError) as err:
249249
logger.warning('Called: %s', ' '.join(cmd))
250250
logger.warning('Failed to scan contributors: %s', err)
251251
return set()

0 commit comments

Comments
 (0)