From c68b310afca5a3f8d2ce007274c817ef7b4cf15d Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Tue, 18 Jan 2022 00:19:48 +0000 Subject: [PATCH] Always print the parts value if there is an upload ID Previously, parts wouldn't be printed if it was an empty list. This made resuming uploads that crashed in the first part harder than necessary. --- ia-upload-stream | 1 - 1 file changed, 1 deletion(-) diff --git a/ia-upload-stream b/ia-upload-stream index c82bbc5..01f5137 100755 --- a/ia-upload-stream +++ b/ia-upload-stream @@ -385,7 +385,6 @@ def main(): logger.info(pprint.pformat(vars(e.r)), exc_info = False) if e.uploadId: logger.log(level, f'Upload ID for resumption or abortion: {e.uploadId}', exc_info = False) - if e.parts: parts = base64.b64encode(json.dumps(e.parts, separators = (',', ':')).encode('ascii')).decode('ascii') logger.log(level, f'Previous parts data for resumption: {parts}', exc_info = False)