Fix doc build from tarball using eventlet>0.19.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
This commit is contained in:
Javier Pena 2017-05-24 11:26:28 +02:00
parent 82420fe66b
commit ef759e96d1

View File

@ -28,7 +28,7 @@ def _guess_cgit_link():
git_remote = subprocess.check_output( git_remote = subprocess.check_output(
['git', 'config', '--local', '--get', 'remote.origin.url'] ['git', 'config', '--local', '--get', 'remote.origin.url']
) )
except (OSError, subprocess.CalledProcessError): except Exception:
# git is not present or the command failed # git is not present or the command failed
return None return None
else: else: