summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/rss.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-23 11:29:06 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-23 11:29:06 +0100
commit620239d6bb3ad85c3f6af4818989b0e0f7e7e631 (patch)
treedb82fb23f5fe9a06c01de3ddd4f07a8b247fda50 /data/rbot/plugins/rss.rb
parent8182a507b717c28c010380f356cde2f3261ee40e (diff)
rss plugin: rescue RSS parsing in htmlinfo filter
Diffstat (limited to 'data/rbot/plugins/rss.rb')
-rw-r--r--data/rbot/plugins/rss.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index 97640838..8bf59dfc 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -373,8 +373,8 @@ class RSSFeedsPlugin < Plugin
s[:text].include?("<rdf:RDF") or s[:text].include?("<rss") or s[:text].include?("<feed") or
s[:text].match(FEED_NS)
blob = RssBlob.new(s[:headers]['x-rbot-location'],"", :htmlinfo)
- unless fetchRss(blob, nil) and parseRss(blob, nil)
- debug "tried to filter #{s.inspect} which is not an RSS feed"
+ unless (fetchRss(blob, nil) and parseRss(blob, nil) rescue nil)
+ debug "#{s.pretty_inspect} is not an RSS feed, despite the appearances"
return nil
end
output = []