diff --git a/lib/azure_blob_store.rb b/lib/azure_blob_store.rb index bad4ac1..14d38ef 100644 --- a/lib/azure_blob_store.rb +++ b/lib/azure_blob_store.rb @@ -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)