diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index 22f81074b31..2d564b42e40 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -71,11 +71,8 @@ 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" + rescue => e + putc "Skipping #{upload.original_filename} (#{upload.url}) #{e.message}" end end end