mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
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…
x
Reference in New Issue
Block a user