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
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue