diff --git a/minio/api.py b/minio/api.py index 6dbc3f9b8..3504e32ea 100644 --- a/minio/api.py +++ b/minio/api.py @@ -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,