Allow backfilling of shas to complete.

This commit is contained in:
Guo Xiang Tan 2016-08-23 10:34:32 +08:00
parent e9927ce5b1
commit 574b8fdf41

View File

@ -71,6 +71,9 @@ task "uploads:backfill_shas" => :environment do
u.sha1 = Digest::SHA1.file(path).hexdigest
u.save!
putc "."
rescue ActiveRecord::RecordInvalid
puts "#{u.extension} is not valid"
putc "X"
rescue Errno::ENOENT
putc "X"
end