From 475410edf54b731eeb38ee911b378478f210546b Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Mon, 30 Aug 2010 06:44:17 +0000 Subject: [PATCH] daklib/queue.py: check if sponsoremail is set first Signed-off-by: Luca Falavigna --- daklib/queue.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daklib/queue.py b/daklib/queue.py index d89284a3..7ec5f094 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -338,7 +338,8 @@ class Upload(object): session = DBConn().session() fpr = get_fingerprint(self.pkg.changes['fingerprint'], session) if self.check_if_upload_is_sponsored("%s@debian.org" % fpr.uid.uid, fpr.uid.name): - self.Subst["__MAINTAINER_TO__"] += ", %s" % self.pkg.changes["sponsoremail"] + if self.pkg.changes.has_key("sponsoremail"): + self.Subst["__MAINTAINER_TO__"] += ", %s" % self.pkg.changes["sponsoremail"] session.close() if cnf.has_key("Dinstall::TrackingServer") and self.pkg.changes.has_key("source"): -- 2.39.5