Skip to content

Commit 3a0b024

Browse files
authored

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/projects/tasks/builds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def sigint_received(*args, **kwargs):
335335
# Only allow to cancel the build if it's not already uploading the files.
336336
# This is to protect our users to end up with half of the documentation uploaded.
337337
# TODO: remove this condition once we implement "Atomic Uploads"
338-
if self.data.build["state"] == BUILD_STATE_UPLOADING:
338+
if self.data.build.get("state") == BUILD_STATE_UPLOADING:
339339
log.warning('Ignoring cancelling the build at "Uploading" state.')
340340
return
341341

0 commit comments

Comments
 (0)