Don't fail build if some apidoc does

This commit is contained in:
boyska 2016-08-24 11:31:58 +02:00
parent 838e7c9c86
commit 7769136f3d
No known key found for this signature in database
GPG key ID: 7395DCAE58289CA9

View file

@ -284,11 +284,14 @@ def run_apidoc(_):
print(red("No apidoc available!"), file=sys.stderr) print(red("No apidoc available!"), file=sys.stderr)
return return
for module in modules: for module in modules:
try:
subprocess.check_call([cmd_path, subprocess.check_call([cmd_path,
'--force', '--force',
'-o', output_path, '-o', output_path,
module module
] + exclude_files) ] + exclude_files)
except subprocess.CalledProcessError:
print(red("APIdoc failed for module {}".format(module)))
def setup(app): def setup(app):