From: Luca Falavigna Date: Mon, 30 Aug 2010 06:44:17 +0000 (+0000) Subject: daklib/queue.py: check if sponsoremail is set first X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=475410edf54b731eeb38ee911b378478f210546b;p=dak daklib/queue.py: check if sponsoremail is set first Signed-off-by: Luca Falavigna --- 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"):