Permalink
Browse files

rescue from deleting an s3 object that no longer exists

  • Loading branch information...
1 parent 575d988 commit 4e35571227833fd39e522d2a2a984e6d405ddf75 @technoweenie committed Dec 5, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/attachment_fu/tasks/s3.rb
@@ -82,6 +82,7 @@ def rename(attachment, old_path, options = @options)
def delete(attachment, options = @options)
S3Object.delete attachment.s3.path, options[:bucket_name]
+ rescue AWS::S3::NoSuchKey
end
def object_for(attachment, thumbnail = nil, options = @options)

0 comments on commit 4e35571

Please sign in to comment.