Skip to content

Commit

Permalink
Update s3_engine.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexfvk committed Sep 12, 2023
1 parent 9cdef65 commit 0425967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch_backup/storage/engine/s3/s3_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def delete_file(self, remote_path: str) -> None:
# https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html
# but GCP returns error in this case
# https://cloud.google.com/storage/docs/xml-api/delete-object
if e.response['Error']['Code'] == 'NoSuchKey':
if e.response['Error']['Code'] == "NoSuchKey":
return
raise

Expand Down

0 comments on commit 0425967

Please sign in to comment.