aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-06-03 16:41:04 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-06-03 16:41:04 +0200
commit87a6b9557a8ce16c93ecbcfd64499b67da41b716 (patch)
tree9b4cc23b33db271f24058860b57c91bc1aaa8eae
parentFix help for zilla instance set, use the OPTIONS array to get the correct lis... (diff)
downloadrbot-bugzilla-87a6b9557a8ce16c93ecbcfd64499b67da41b716.tar.gz
rbot-bugzilla-87a6b9557a8ce16c93ecbcfd64499b67da41b716.tar.bz2
rbot-bugzilla-87a6b9557a8ce16c93ecbcfd64499b67da41b716.zip
Don't try fetching if there are no announcements expected, for real this time.
Also output exceptions in the debug log and avoid stopping announcements.
-rw-r--r--bugzilla.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index b76174e..7fb6bf6 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -316,7 +316,7 @@ class BugzillaPlugin < Plugin
end
def announce
- return if @registry["zilla.#{@name}.announcements"].size < 1
+ return unless @registry["zilla.#{@name}.announcements"]
buglist_url = baseurl +
"/buglist.cgi?ctype=csv&order=bugs.bug_id"
@@ -664,7 +664,11 @@ class BugzillaPlugin < Plugin
def poll_zillas
@zillas.each do |name, zilla|
- zilla.announce
+ begin
+ zilla.announce
+ rescue Exception => e
+ debug(e.message + "\n" + e.backtrace.join("\n\t"))
+ end
end
end