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)
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):