Skip to content

Commit d3e5f24

Browse files
committed
FIX: Sometimes output directories are not owned by the script.
1 parent d323997 commit d3e5f24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_docs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ def build_one(version, isdev, quick, sphinxbuild, build_root, www_root,
176176
'-D gettext_compact=0').format(locale_dirs,
177177
gettext_language_tag)
178178
os.makedirs(target, exist_ok=True)
179-
os.chmod(target, 0o775)
179+
try:
180+
os.chmod(target, 0o775)
181+
except PermissionError as err:
182+
logging.warning("Can't chmod %s: %s", target, str(err))
180183
shell_out("chgrp -R {group} {file}".format(group=group, file=target))
181184
logging.info("Doc autobuild started in %s", checkout)
182185
os.chdir(checkout)

0 commit comments

Comments
 (0)