Skip to content

Commit

Permalink
Handle deleting missing container in azureblob-sdk
Browse files Browse the repository at this point in the history
References #606.
  • Loading branch information
gaul committed Nov 11, 2024
1 parent 9e2c40a commit 2e66fb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/gaul/s3proxy/azureblob/AzureBlobStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ public void removeBlob(String container, String key) {
try {
client.delete();
} catch (BlobStorageException bse) {
if (bse.getErrorCode() != BlobErrorCode.BLOB_NOT_FOUND) {
if (bse.getErrorCode() != BlobErrorCode.BLOB_NOT_FOUND &&
bse.getErrorCode() != BlobErrorCode.CONTAINER_NOT_FOUND) {
throw bse;
}
}
Expand Down

0 comments on commit 2e66fb2

Please sign in to comment.