diff --git a/lib/tasks/avatars.rake b/lib/tasks/avatars.rake index f9bdf8e8b90..28f84f8aad0 100644 --- a/lib/tasks/avatars.rake +++ b/lib/tasks/avatars.rake @@ -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