FIX: rescue `avatars:refresh` rake task

This commit is contained in:
Arpit Jalan 2019-04-14 14:26:12 +05:30
parent 2863abefdd
commit a423e9b14a
1 changed files with 6 additions and 2 deletions

View File

@ -6,8 +6,12 @@ task "avatars:refresh" => :environment do
puts
User.find_each do |user|
user.refresh_avatar
user.user_avatar.update_gravatar!
begin
user.refresh_avatar
user.user_avatar.update_gravatar!
rescue
# skip
end
putc "." if (i += 1) % 10 == 0
end