Skip to content

Commit

Permalink
ignore NoSuchVersion returned in remove_objects (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored Nov 28, 2020
1 parent d266a15 commit be9629d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion minio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,11 @@ def remove_objects(self, bucket_name, delete_object_list,
)

for error in result.error_list:
yield error
# AWS S3 returns "NoSuchVersion" error when
# version doesn't exist ignore this error
# yield all errors otherwise
if error.code() != "NoSuchVersion":
yield error

def presigned_url(self, method,
bucket_name,
Expand Down

0 comments on commit be9629d

Please sign in to comment.