diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-24 21:56:41 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-24 21:56:41 +0000 |
commit | ddf83775bb3f38f6c930a4dade190bd0950d1336 (patch) | |
tree | 85e9c7cb4d78c1d8850d7c8b361e954e4beaa70d /data/rbot/plugins | |
parent | c2c4ebf2efc650cad3294e4e092a5beaa1c725a6 (diff) |
Fix yet more problem reporting in rss plugin
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/rss.rb | 14 |
1 files changed, 7 insertions, 7 deletions
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}"
|