mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
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
Block a user