BenderKit: fix upload not reporting failed uploads correctly.
This commit is contained in:
parent
d7e9c0f204
commit
0ea7694caf
|
@ -98,9 +98,11 @@ def upload_files(filepath, upload_data, files):
|
|||
upload_response = requests.put(upload['s3UploadUrl'],
|
||||
data=upload_in_chunks(f['file_path'], chunk_size, f['type']),
|
||||
stream=True, verify=True)
|
||||
# print('upload response')
|
||||
# print(upload_response.text)
|
||||
uploaded = True
|
||||
|
||||
if upload_response.status_code == 200:
|
||||
uploaded = True
|
||||
else:
|
||||
bg_blender.progress('Upload failed, retry.')
|
||||
except Exception as e:
|
||||
bg_blender.progress('Upload %s failed, retrying' % f['type'])
|
||||
time.sleep(1)
|
||||
|
|
Loading…
Reference in New Issue