diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-18 23:16:34 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-18 23:16:34 +0100 |
commit | e4f56fa94217061b25f3a8f45d17c8657ca9c56d (patch) | |
tree | 37fa33ecf00febc7f909fa97d2d5dc6744a7e994 /app/services | |
parent | 882de42bab197e4d6b7b8acf327e72a240eda76d (diff) |
Don't create attachments if remote file cannot be fetched
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/process_feed_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb index 561feb032..08c66c904 100644 --- a/app/services/process_feed_service.rb +++ b/app/services/process_feed_service.rb @@ -173,7 +173,7 @@ class ProcessFeedService < BaseService begin media.file_remote_url = link['href'] media.save - rescue Paperclip::Errors::NotIdentifiedByImageMagickError + rescue OpenURI::HTTPError, Paperclip::Errors::NotIdentifiedByImageMagickError next end end |