mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:50:26 -06:00
Allow backfilling of shas to complete.
This commit is contained in:
parent
e9927ce5b1
commit
574b8fdf41
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user