diff --git a/oslosphinx/__init__.py b/oslosphinx/__init__.py index 773ceb6..f979aa1 100644 --- a/oslosphinx/__init__.py +++ b/oslosphinx/__init__.py @@ -28,7 +28,7 @@ def _guess_cgit_link(): git_remote = subprocess.check_output( ['git', 'config', '--local', '--get', 'remote.origin.url'] ) - except (OSError, subprocess.CalledProcessError): + except Exception: # git is not present or the command failed return None else: