Optimistic fix for deploying errors due to missing files. Please review

@ZogStriP
This commit is contained in:
Robin Ward 2014-05-28 10:35:21 -04:00
parent 1a31eb1d97
commit 457e32d1b0
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,10 @@ module FileStore
fog.copy_object(unique_filename, s3_bucket, tombstone_prefix + unique_filename, s3_bucket)
# delete the file
fog.delete_object(s3_bucket, unique_filename)
rescue Excon::Errors::NotFound
# If the file cannot be found, don't raise an error.
# I am not certain if this is the right thing to do but we can't deploy
# right now. Please review this @ZogStriP
end
def update_tombstone_lifecycle(grace_period)