contrib/release.py: don't break if sphinx-build is missing

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2019-02-17 00:54:17 +01:00
parent 5c735fd327
commit f9aefed704

View File

@ -274,7 +274,10 @@ class Website(object):
if User.yesNo(req, defaultToYes=True) is False: if User.yesNo(req, defaultToYes=True) is False:
return False return False
try:
if check_call(shlex.split("{} --version".format(SPHINXBUILD))) != 0: if check_call(shlex.split("{} --version".format(SPHINXBUILD))) != 0:
raise RuntimeError("{} not found".format(SPHINXBUILD))
except:
print(""" print("""
Oops! you don't have {} installed?" Oops! you don't have {} installed?"
Cannot update the webite documentation..." Cannot update the webite documentation..."