Raising MalformedXML exception when using boto3 client and s3.delete_objects()
This commit is contained in:
parent
108dc6b049
commit
f32db6e64a
2 changed files with 14 additions and 0 deletions
|
|
@ -566,6 +566,8 @@ class ResponseObject(_TemplateEnvironmentMixin):
|
|||
keys = minidom.parseString(body).getElementsByTagName('Key')
|
||||
deleted_names = []
|
||||
error_names = []
|
||||
if len(keys) == 0:
|
||||
raise MalformedXML()
|
||||
|
||||
for k in keys:
|
||||
key_name = k.firstChild.nodeValue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue