Merge pull request #424 from mjibson/cancel-mp

Cancel failed multipart uploads
This commit is contained in:
Matt Jibson 2015-08-31 13:42:04 -04:00
commit 92fb753dee

View file

@ -163,6 +163,7 @@ class _CloudStorage(BaseStorage):
num_part += 1
io.close()
except IOError:
mp.cancel_upload()
break
mp.complete_upload()