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!
|
save!
|
||||||
rescue SocketError
|
rescue SocketError
|
||||||
# skip saving, we are not connected to the net
|
# skip saving, we are not connected to the net
|
||||||
Rails.logger.warn "Failed to download gravatar, socket error - user id #{user_id}"
|
|
||||||
ensure
|
ensure
|
||||||
tempfile.try(:close!)
|
tempfile.try(:close!)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue