From 7769136f3dc03d9be63e487d11ab2682fdd23c44 Mon Sep 17 00:00:00 2001 From: boyska Date: Wed, 24 Aug 2016 11:31:58 +0200 Subject: [PATCH] Don't fail build if some apidoc does --- doc/source/conf.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 1b8169d..854ed31 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -284,11 +284,14 @@ def run_apidoc(_): print(red("No apidoc available!"), file=sys.stderr) return for module in modules: - subprocess.check_call([cmd_path, - '--force', - '-o', output_path, - module - ] + exclude_files) + try: + subprocess.check_call([cmd_path, + '--force', + '-o', output_path, + module + ] + exclude_files) + except subprocess.CalledProcessError: + print(red("APIdoc failed for module {}".format(module))) def setup(app):