mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
skip bad images
This commit is contained in:
parent
839edbe922
commit
3cf0714a29
1 changed files with 4 additions and 1 deletions
5
Rakefile
5
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
|
||||
|
|
Loading…
Add table
Reference in a new issue