Skip to content

Commit 95040f9

Browse files
author
Mike Haboustak
committed
Lazy get project during download
1 parent cf82c59 commit 95040f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

art/command_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def download():
130130
_cache.get(filename)
131131
except KeyError:
132132
click.echo('* %s: %s => downloading...' % (entry['project'], entry['job_id']))
133-
proj = gitlab.projects.get(entry['project'])
133+
proj = gitlab.projects.get(entry['project'], lazy=True)
134134
job = proj.jobs.get(entry['job_id'], lazy=True)
135135
with _cache.save_file(filename) as f:
136136
job.artifacts(streamed=True, action=f.write)

0 commit comments

Comments
 (0)