File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,6 @@ def create_upload_job(
265265 job .server_resp = push_start_resp
266266 push_project_finalize (job )
267267 return # all done - no pending job
268-
269268
270269 if transaction_id :
271270 mp .log .info (f"got transaction ID { transaction_id } " )
@@ -405,15 +404,15 @@ def push_project_finalize(job: UploadJob):
405404 try :
406405 job .update_chunks_from_items ()
407406 job .mp .log .info (f"Finishing transaction for project { job .mp .project_full_name ()} " )
408- job .mc .post (
407+ resp = job .mc .post (
409408 f"/v2/projects/{ job .mp .project_id ()} /versions" ,
410409 data = {
411410 "version" : job .version ,
412411 "changes" : job .changes .to_server_payload (),
413412 },
414413 headers = {"Content-Type" : "application/json" },
415414 )
416- project_info = job . mc . project_info ( job . mp . project_id () )
415+ project_info = json . load ( resp )
417416 job .server_resp = project_info
418417 except ClientError as err :
419418 if err .server_code in [ErrorCode .AnotherUploadRunning .value , ErrorCode .ProjectVersionExists .value ]:
You can’t perform that action at this time.
0 commit comments