Merge pull request #6629 from opf/fix/28425/remote-file-can-be-nil

[28425] Accept that remote file can become nil
pull/6633/head
Oliver Günther 6 years ago committed by GitHub
commit 874fda3449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/uploaders/fog_file_uploader.rb

@ -69,7 +69,7 @@ class FogFileUploader < CarrierWave::Uploader::Base
#
# Excon::Errors::Forbidden: Expected(200) <=> Actual(403 Forbidden)
def readable?
remote_file.exists?
remote_file&.exists?
rescue Excon::Errors::Forbidden
false
end

Loading…
Cancel
Save