mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Catch RSS Parsing errors
This commit is contained in:
parent
c2bf525a06
commit
6e4ba8a33e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user