From f9aefed704a76ba5392879f7b08c1e40032369ab Mon Sep 17 00:00:00 2001 From: Nicolas Sebrecht Date: Sun, 17 Feb 2019 00:54:17 +0100 Subject: [PATCH] contrib/release.py: don't break if sphinx-build is missing Signed-off-by: Nicolas Sebrecht --- contrib/release.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/release.py b/contrib/release.py index b4d0439..6a54535 100755 --- a/contrib/release.py +++ b/contrib/release.py @@ -274,7 +274,10 @@ class Website(object): if User.yesNo(req, defaultToYes=True) is False: return False - if check_call(shlex.split("{} --version".format(SPHINXBUILD))) != 0: + try: + if check_call(shlex.split("{} --version".format(SPHINXBUILD))) != 0: + raise RuntimeError("{} not found".format(SPHINXBUILD)) + except: print(""" Oops! you don't have {} installed?" Cannot update the webite documentation..."