skip bad images

This commit is contained in:
Kyle Drake 2015-01-01 05:06:05 +00:00
parent 839edbe922
commit 3cf0714a29

View file

@ -195,7 +195,10 @@ task :rebuild_thumbnails => [:environment] do
path = '/'+full_path[1..full_path.length].join('/')
if Pathname(path).extname.gsub('.', '').match Site::IMAGE_REGEX
ThumbnailWorker.new.perform username, path
begin
ThumbnailWorker.new.perform username, path
rescue Magick::ImageMagickError
end
end
end
end