FIX: rescue `avatars:refresh` rake task
This commit is contained in:
parent
2863abefdd
commit
a423e9b14a
|
@ -6,8 +6,12 @@ task "avatars:refresh" => :environment do
|
||||||
puts
|
puts
|
||||||
|
|
||||||
User.find_each do |user|
|
User.find_each do |user|
|
||||||
user.refresh_avatar
|
begin
|
||||||
user.user_avatar.update_gravatar!
|
user.refresh_avatar
|
||||||
|
user.user_avatar.update_gravatar!
|
||||||
|
rescue
|
||||||
|
# skip
|
||||||
|
end
|
||||||
putc "." if (i += 1) % 10 == 0
|
putc "." if (i += 1) % 10 == 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue