From: Mark Hymers Date: Tue, 26 Jul 2011 13:50:16 +0000 (+0100) Subject: More checks for Dinstall::BugServer X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2c3264544ddd44b4f90730296c909ac7d3b3fe03;p=dak.git More checks for Dinstall::BugServer Signed-off-by: Mark Hymers --- diff --git a/daklib/queue.py b/daklib/queue.py index cde85301..5055ea57 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -443,7 +443,8 @@ class Upload(object): cnf = Config() self.Subst = {} self.Subst["__ADMIN_ADDRESS__"] = cnf["Dinstall::MyAdminAddress"] - self.Subst["__BUG_SERVER__"] = cnf["Dinstall::BugServer"] + if cnf.has_key("Dinstall::BugServer"): + self.Subst["__BUG_SERVER__"] = cnf["Dinstall::BugServer"] self.Subst["__DISTRO__"] = cnf["Dinstall::MyDistribution"] self.Subst["__DAK_ADDRESS__"] = cnf["Dinstall::MyEmailAddress"] @@ -2027,7 +2028,7 @@ distribution.""" del self.Subst["__ANNOUNCE_LIST_ADDRESS__"] - if cnf.FindB("Dinstall::CloseBugs"): + if cnf.FindB("Dinstall::CloseBugs") and cnf.has_key("Dinstall::BugServer"): summary = self.close_bugs(summary, action) del self.Subst["__SHORT_SUMMARY__"]