From 3cf0714a292acb0994cfcbd4b389653151a779c5 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Thu, 1 Jan 2015 05:06:05 +0000 Subject: [PATCH] skip bad images --- Rakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index a27ae0d6..aeaad7b7 100644 --- a/Rakefile +++ b/Rakefile @@ -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