diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/concerns/account_avatar.rb | 2 | ||||
-rw-r--r-- | app/models/concerns/account_header.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/concerns/account_avatar.rb b/app/models/concerns/account_avatar.rb index 38e32864a..8b9b72659 100644 --- a/app/models/concerns/account_avatar.rb +++ b/app/models/concerns/account_avatar.rb @@ -34,7 +34,7 @@ module AccountAvatar self.avatar = URI.parse(parsed_url.to_s) self[:avatar_remote_url] = url - rescue OpenURI::HTTPError => e + rescue OpenURI::HTTPError, OpenSSL::SSL::SSLError, Paperclip::Errors::NotIdentifiedByImageMagickError => e Rails.logger.debug "Error fetching remote avatar: #{e}" end end diff --git a/app/models/concerns/account_header.rb b/app/models/concerns/account_header.rb index 8fa5e1616..42f556a46 100644 --- a/app/models/concerns/account_header.rb +++ b/app/models/concerns/account_header.rb @@ -34,7 +34,7 @@ module AccountHeader self.header = URI.parse(parsed_url.to_s) self[:header_remote_url] = url - rescue OpenURI::HTTPError => e + rescue OpenURI::HTTPError, OpenSSL::SSL::SSLError, Paperclip::Errors::NotIdentifiedByImageMagickError => e Rails.logger.debug "Error fetching remote header: #{e}" end end |