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..."