Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #10 from schungx/master
Browse files Browse the repository at this point in the history
Trap exception when failed to move blob to tombstone.
  • Loading branch information
SamSaffron committed Mar 11, 2019
2 parents decad5d + 073ae51 commit 22fcf8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/azure_blob_store.rb
Expand Up @@ -34,6 +34,8 @@ def remove_file(url, path)
source_blob_name)
# delete the file
blob_service.delete_blob(azure_blob_container, source_blob_name)
rescue StandardError => exception
Rails.logger.warn("Blob can not be moved to tombstone: #{exception}\nUrl: #{url}\nBlob: #{source_blob_name}")
end

def has_been_uploaded?(url)
Expand Down

0 comments on commit 22fcf8d

Please sign in to comment.