lib/paperclip-aws.rb in paperclip-aws-1.3.4 vs lib/paperclip-aws.rb in paperclip-aws-1.3.5
- old
+ new
@@ -99,10 +99,10 @@
if path(style).nil? || path(style).to_s.strip == ""
return false
end
begin
return @s3.buckets[@s3_bucket].objects[path(style)].exists?
- rescue AWS::S3::Errors::NoSuchKey
+ rescue AWS::S3::Errors::Base
return false
end
end
def choose_protocol(style, options={})