From 6e4ba8a33e80f32761c7d507f46e43b852096a09 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 9 May 2017 15:07:06 -0400 Subject: [PATCH] Catch RSS Parsing errors --- app/jobs/scheduled/poll_feed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/scheduled/poll_feed.rb b/app/jobs/scheduled/poll_feed.rb index 8c0e1e75b33..fe5ef403fcd 100644 --- a/app/jobs/scheduled/poll_feed.rb +++ b/app/jobs/scheduled/poll_feed.rb @@ -70,7 +70,7 @@ module Jobs def fetch_rss SimpleRSS.parse open(@feed_url, allow_redirections: :all) - rescue OpenURI::HTTPError + rescue OpenURI::HTTPError, SimpleRSSError nil end