Don't log a gravatar failure that is a socket error

This commit is contained in:
Robin Ward 2017-05-09 14:44:53 -04:00
parent bcf1a9d43f
commit da92f35e08
1 changed files with 0 additions and 1 deletions

View File

@ -31,7 +31,6 @@ class UserAvatar < ActiveRecord::Base
save!
rescue SocketError
# skip saving, we are not connected to the net
Rails.logger.warn "Failed to download gravatar, socket error - user id #{user_id}"
ensure
tempfile.try(:close!)
end