From c66e854af4f9d6be1947564638289fe781f1c9e9 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 24 Oct 2006 00:12:23 +0000 Subject: Trap a possible exception when getting URL titles, even though nothing is actually done to handle it --- data/rbot/plugins/url.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data') diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb index 7190ec5d..a52a9d41 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -118,6 +118,7 @@ class UrlPlugin < Plugin if @bot.config['url.display_link_info'] debug "Getting title for #{urlstr}..." + begin title = get_title_for_url urlstr if title m.reply title @@ -125,6 +126,9 @@ class UrlPlugin < Plugin else debug "Title not found!" end + rescue => e + debug "Failed: #{e}" + end end # check to see if this url is already listed -- cgit v1.2.3