summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Pena <jpena@redhat.com>2017-05-24 11:26:28 +0200
committerJavier Pena <jpena@redhat.com>2017-05-24 11:32:53 +0200
commitef759e96d15562a696b59126089f4ab51e06bd6f (patch)
treeee5adb2566616d50a84cd8890a5519de580d15a9
parent82420fe66b5ea400d382924e2a430813b281dbe6 (diff)
downloadoslosphinx-ef759e96d15562a696b59126089f4ab51e06bd6f.tar.gz
Fix doc build from tarball using eventlet>0.19.04.13.0
When subprocess is monkey-patched using eventlet, trying to catch subprocess.CalledProcessError exception won't work [1]. This breaks doc build from a tarball, so let's catch all exceptions. [1] https://github.com/eventlet/eventlet/issues/357 Change-Id: Ibcf535c6e4994a67fc3ec71631a81ecb91dd2845 Closes-Bug: #1693148
-rw-r--r--oslosphinx/__init__.py2
1 files changed, 1 insertions, 1 deletions
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: