Skip to content

Commit

Permalink
ignore NoSuchVersion properly in remove_objects
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana authored and minio-trusted committed Nov 28, 2020
1 parent 5377be5 commit 307fffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ def check_name(name):
# AWS S3 returns "NoSuchVersion" error when
# version doesn't exist ignore this error
# yield all errors otherwise
if err_result.code() != 'NoSuchVersion':
if err_result.error_code != 'NoSuchVersion':
yield err_result

def list_incomplete_uploads(self, bucket_name, prefix='', recursive=False):
Expand Down

0 comments on commit 307fffe

Please sign in to comment.