Skip to content

Commit 7483118

Browse files
authored
Fix linter (#8897)
1 parent 17b225f commit 7483118

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

readthedocs/builds/tasks.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,13 @@ def route_for_task(self, task, args, kwargs, **__):
115115
last_builds = version.builds.order_by('-date')[:self.N_LAST_BUILDS]
116116
# Version has used conda in previous builds
117117
for build in last_builds.iterator():
118-
build_tools_python = build.config.get('build', {}).get('tools', {}).get('python', {}).get('version', '')
118+
build_tools_python = (
119+
build.config
120+
.get('build', {})
121+
.get('tools', {})
122+
.get('python', {})
123+
.get('version', '')
124+
)
119125
conda = build.config.get('conda', None)
120126

121127
uses_conda = any([

0 commit comments

Comments
 (0)