Don't fail build if some apidoc does
This commit is contained in:
parent
838e7c9c86
commit
7769136f3d
1 changed files with 8 additions and 5 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue