From: Giuseppe Bilotta Date: Sun, 8 Feb 2009 13:04:36 +0000 (+0100) Subject: grouphug: log errors X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=edbd40c4a968645bd340a7300b429bd4856ee5b8;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git grouphug: log errors --- diff --git a/data/rbot/plugins/grouphug.rb b/data/rbot/plugins/grouphug.rb index 90527fb7..5a1890a2 100644 --- a/data/rbot/plugins/grouphug.rb +++ b/data/rbot/plugins/grouphug.rb @@ -71,7 +71,8 @@ class GrouphugPlugin < Plugin confession = @confessions.pop m.reply confession end - rescue + rescue Exception => e + error e m.reply "failed to connect to grouphug.us" end end