From f8c503186ebe1e735222a906b2ff1d2fc050a443 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 17 May 2017 12:38:18 -0400 Subject: [PATCH] FIX: If there's an error downloading, don't raise it --- app/models/user_avatar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user_avatar.rb b/app/models/user_avatar.rb index 4d5b6e7d696..02b9f6b39f7 100644 --- a/app/models/user_avatar.rb +++ b/app/models/user_avatar.rb @@ -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!)