File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -268,15 +268,13 @@ def get_artifact(self, artifact_download_url: str):
268
268
# Create temporary folder
269
269
artifact_folder_object = tempfile .TemporaryDirectory (prefix = "reportsizedeltas-" )
270
270
try :
271
+ artifact_zip_file = artifact_folder_object .name + "/" + self .sketches_reports_source + ".zip"
271
272
# Download artifact
272
- with open (
273
- file = artifact_folder_object .name + "/" + self .sketches_reports_source + ".zip" , mode = "wb"
274
- ) as out_file :
273
+ with open (file = artifact_zip_file , mode = "wb" ) as out_file :
275
274
with self .raw_http_request (url = artifact_download_url ) as fp :
276
275
out_file .write (fp .read ())
277
276
278
277
# Unzip artifact
279
- artifact_zip_file = artifact_folder_object .name + "/" + self .sketches_reports_source + ".zip"
280
278
with zipfile .ZipFile (file = artifact_zip_file , mode = "r" ) as zip_ref :
281
279
zip_ref .extractall (path = artifact_folder_object .name )
282
280
os .remove (artifact_zip_file )
You can’t perform that action at this time.
0 commit comments