From 84cd55121d726d84d872ea074b7f2c79e6ef7bd5 Mon Sep 17 00:00:00 2001 From: Diego 'Flameeyes' Pettenò Date: Tue, 3 Jun 2008 15:51:40 +0200 Subject: Don't try to fetch the buglist if there are no announcements for the instance. This way we avoid fetching a ton of data, and we don't create problems if the instance contains invalid data. --- bugzilla.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bugzilla.rb b/bugzilla.rb index 9fe9e6b..4457a08 100644 --- a/bugzilla.rb +++ b/bugzilla.rb @@ -316,6 +316,8 @@ class BugzillaPlugin < Plugin end def announce + return if @registry["zilla.#{@name}.announcements"].size < 1 + buglist_url = baseurl + "/buglist.cgi?ctype=csv&order=bugs.bug_id" -- cgit v1.2.3-65-gdbad