summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/freshmeat.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/data/rbot/plugins/freshmeat.rb b/data/rbot/plugins/freshmeat.rb
index f7e163f0..dce6c0d4 100644
--- a/data/rbot/plugins/freshmeat.rb
+++ b/data/rbot/plugins/freshmeat.rb
@@ -49,7 +49,13 @@ class FreshmeatPlugin < Plugin
m.reply "search for #{search} failed"
return
end
- doc = Document.new xml
+ doc = nil
+ begin
+ doc = Document.new xml
+ rescue
+ debug xml
+ error $!
+ end
unless doc
m.reply "search for #{search} failed"
return