```ruby
desc "Sync steam stats for recently logged in users"
task :sync_stats => :environment do
  Player.where(:last_viewed.gte => 1.week.ago).each do |player|
    player.latest_stats
  end
end```

Fix rake task so that a single sync failure wont stop the process
user
```ruby
desc "Sync steam stats for recently logged in users"
task :sync_stats => :environment do
  Player.where(:last_viewed.gte => 1.week.ago).each do |player|
    begin
      player.latest_stats
    rescue
    end
  end
end```
assistant