Skip to content

Commit c02ab50

Browse files
committed
Check for None
1 parent 1e5f3f0 commit c02ab50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

readthedocs/core/utils/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ def prepare_build(
161161
# At 1h exactly, the task is grabbed by another worker and re-executed,
162162
# even while it's still running on the original worker.
163163
# https://github.com/readthedocs/readthedocs.org/issues/12317
164-
if project.has_feature(Feature.BUILD_NO_ACKS_LATE) or project.container_time_limit >= 3600:
164+
if (
165+
project.has_feature(Feature.BUILD_NO_ACKS_LATE)
166+
or project.container_time_limit
167+
and project.container_time_limit >= 3600
168+
):
165169
log.info("Disabling ACKS_LATE for this particular build.")
166170
options["acks_late"] = False
167171

0 commit comments

Comments
 (0)