mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
don't silence these errors
This commit is contained in:
parent
9e7eb4c48b
commit
bc9fd2c46d
2 changed files with 0 additions and 4 deletions
|
@ -195,11 +195,9 @@ class OptimizedImage < ActiveRecord::Base
|
|||
if external
|
||||
url = SiteSetting.scheme + ":" + previous_url
|
||||
file = FileHelper.download(url, max_file_size_kb, "discourse", true) rescue nil
|
||||
next unless file
|
||||
path = file.path
|
||||
else
|
||||
path = local_store.path_for(optimized_image)
|
||||
next unless File.exists?(path)
|
||||
file = File.open(path)
|
||||
end
|
||||
# compute SHA if missing
|
||||
|
|
|
@ -167,11 +167,9 @@ class Upload < ActiveRecord::Base
|
|||
if external
|
||||
url = SiteSetting.scheme + ":" + previous_url
|
||||
file = FileHelper.download(url, max_file_size_kb, "discourse", true) rescue nil
|
||||
next unless file
|
||||
path = file.path
|
||||
else
|
||||
path = local_store.path_for(upload)
|
||||
next unless File.exists?(path)
|
||||
end
|
||||
# compute SHA if missing
|
||||
if upload.sha1.blank?
|
||||
|
|
Loading…
Reference in a new issue