mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
Don't log a gravatar failure that is a socket error
This commit is contained in:
parent
bcf1a9d43f
commit
da92f35e08
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user