From 2c3264544ddd44b4f90730296c909ac7d3b3fe03 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Tue, 26 Jul 2011 14:50:16 +0100 Subject: [PATCH] More checks for Dinstall::BugServer Signed-off-by: Mark Hymers --- daklib/queue.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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__"] -- 2.39.5