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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user