Pārlūkot izejas kodu

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.
master
JustAnotherArchivist pirms 2 gadiem
vecāks
revīzija
c68b310afc
1 mainītis faili ar 0 papildinājumiem un 1 dzēšanām
  1. +0
    -1
      ia-upload-stream

+ 0
- 1
ia-upload-stream Parādīt failu

@@ -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)



Notiek ielāde…
Atcelt
Saglabāt