#3593 - S3 - Return appropriate error when provided with invalid multipart ID (#4040)

This commit is contained in:
Bert Blommers 2021-06-28 15:57:07 +01:00 committed by GitHub
commit 059c36b694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 1 deletions

View file

@ -333,7 +333,7 @@ class FakeMultipart(BaseModel):
def set_part(self, part_id, value):
if part_id < 1:
return
raise NoSuchUpload(upload_id=part_id)
key = FakeKey(part_id, value)
self.parts[part_id] = key