We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 309a596 commit 3a0b024Copy full SHA for 3a0b024
readthedocs/projects/tasks/builds.py
@@ -335,7 +335,7 @@ def sigint_received(*args, **kwargs):
335
# Only allow to cancel the build if it's not already uploading the files.
336
# This is to protect our users to end up with half of the documentation uploaded.
337
# TODO: remove this condition once we implement "Atomic Uploads"
338
- if self.data.build["state"] == BUILD_STATE_UPLOADING:
+ if self.data.build.get("state") == BUILD_STATE_UPLOADING:
339
log.warning('Ignoring cancelling the build at "Uploading" state.')
340
return
341
0 commit comments