Catch RSS Parsing errors
This commit is contained in:
parent
c2bf525a06
commit
6e4ba8a33e
|
@ -70,7 +70,7 @@ module Jobs
|
||||||
|
|
||||||
def fetch_rss
|
def fetch_rss
|
||||||
SimpleRSS.parse open(@feed_url, allow_redirections: :all)
|
SimpleRSS.parse open(@feed_url, allow_redirections: :all)
|
||||||
rescue OpenURI::HTTPError
|
rescue OpenURI::HTTPError, SimpleRSSError
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue