mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 08:11:56 +02:00
remove kickstarter days helper
This commit is contained in:
parent
0ddcd3b35a
commit
0f0baa78ff
2 changed files with 7 additions and 11 deletions
|
@ -7,7 +7,13 @@ class ThumbnailWorker
|
|||
|
||||
def perform(username, path)
|
||||
img_list = Magick::ImageList.new
|
||||
img_list.from_blob File.read(File.join(Site::SITE_FILES_ROOT, username, path))
|
||||
|
||||
begin
|
||||
img_list.from_blob File.read(File.join(Site::SITE_FILES_ROOT, username, path))
|
||||
rescue Errno::ENOENT => e # Not found, skip
|
||||
return
|
||||
end
|
||||
|
||||
img = img_list.first
|
||||
|
||||
user_thumbnails_path = File.join THUMBNAILS_PATH, username
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue