From ddf83775bb3f38f6c930a4dade190bd0950d1336 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 24 Jul 2006 21:56:41 +0000 Subject: Fix yet more problem reporting in rss plugin --- data/rbot/plugins/rss.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index bec03add..353e1675 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -8,11 +8,11 @@ require 'rss/parser' require 'rss/1.0' require 'rss/2.0' require 'rss/dublincore' -begin - # require 'rss/dublincore/2.0' -rescue - warning "Unable to load RSS libraries, RSS plugin functionality crippled" -end +# begin +# require 'rss/dublincore/2.0' +# rescue +# warning "Unable to load RSS libraries, RSS plugin functionality crippled" +# end class ::String def shorten(limit) @@ -168,7 +168,7 @@ class RSSFeedsPlugin < Plugin end if e debug e.inspect - debug e.backtrace.join("\n") if e.class >= Exception + debug e.backtrace.join("\n") if e.respond_to?(:backtrace) end end @@ -363,7 +363,7 @@ class RSSFeedsPlugin < Plugin title, newItems = fetchRss(feed) } unless newItems - m.reply "no items in feed" + debug "no items in feed #{feed}" break end debug "Checking if new items are available for #{feed}" -- cgit v1.2.3