about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-18 23:16:34 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-18 23:16:34 +0100
commite4f56fa94217061b25f3a8f45d17c8657ca9c56d (patch)
tree37fa33ecf00febc7f909fa97d2d5dc6744a7e994 /app/models
parent882de42bab197e4d6b7b8acf327e72a240eda76d (diff)
Don't create attachments if remote file cannot be fetched
Diffstat (limited to 'app/models')
-rw-r--r--app/models/media_attachment.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb
index d3e3d73be..bfbf00d76 100644
--- a/app/models/media_attachment.rb
+++ b/app/models/media_attachment.rb
@@ -22,8 +22,6 @@ class MediaAttachment < ApplicationRecord
 
   def file_remote_url=(url)
     self.file = URI.parse(url)
-  rescue OpenURI::HTTPError => e
-    Rails.logger.debug "Error fetching remote attachment: #{e}"
   end
 
   def image?