FIX: If there's an error downloading, don't raise it
This commit is contained in:
parent
9090c7b05b
commit
f8c503186e
|
@ -82,7 +82,7 @@ class UserAvatar < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
rescue Net::ReadTimeout
|
||||
rescue Net::ReadTimeout, OpenURI::HTTPError
|
||||
# skip saving, we are not connected to the net
|
||||
ensure
|
||||
tempfile.close! if tempfile && tempfile.respond_to?(:close!)
|
||||
|
|
Loading…
Reference in New Issue