Skip to content

Commit 46bc122

Browse files
committed
try/except each build.
This avoid dropping each following builds if a single fails.
1 parent b466e78 commit 46bc122

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

build_docs.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -217,20 +217,20 @@ def main():
217217
"docsbuild.log"))
218218
logging.root.setLevel(logging.DEBUG)
219219
sphinxbuild = os.path.join(args.build_root, "environment/bin/sphinx-build")
220-
try:
221-
if args.branch:
222-
branches_to_do = [(args.branch, args.devel)]
223-
else:
224-
branches_to_do = BRANCHES
225-
for version, devel in branches_to_do:
220+
if args.branch:
221+
branches_to_do = [(args.branch, args.devel)]
222+
else:
223+
branches_to_do = BRANCHES
224+
for version, devel in branches_to_do:
225+
try:
226226
build_one(version, devel, args.quick, sphinxbuild,
227227
args.build_root, args.www_root,
228228
args.skip_cache_invalidation, args.group, args.git,
229229
args.log_directory)
230-
build_devguide(args.devguide_checkout, args.devguide_target,
231-
sphinxbuild, args.skip_cache_invalidation)
232-
except Exception:
233-
logging.exception("docs build raised exception")
230+
except Exception:
231+
logging.exception("docs build raised exception")
232+
build_devguide(args.devguide_checkout, args.devguide_target,
233+
sphinxbuild, args.skip_cache_invalidation)
234234

235235

236236
if __name__ == '__main__':

0 commit comments

Comments
 (0)