Skip to content

Fix linter #8897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion readthedocs/builds/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,13 @@ def route_for_task(self, task, args, kwargs, **__):
last_builds = version.builds.order_by('-date')[:self.N_LAST_BUILDS]
# Version has used conda in previous builds
for build in last_builds.iterator():
build_tools_python = build.config.get('build', {}).get('tools', {}).get('python', {}).get('version', '')
build_tools_python = (
build.config
.get('build', {})
.get('tools', {})
.get('python', {})
.get('version', '')
)
conda = build.config.get('conda', None)

uses_conda = any([
Expand Down