From 594be88c3e0b1c50943840b0f63db69a6fe8adc1 Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Fri, 17 Sep 2010 15:20:40 +0000 Subject: [PATCH] Check if fpr is set before accessing its methods Signed-off-by: Luca Falavigna --- daklib/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/queue.py b/daklib/queue.py index c4c4b53f..c5e6ca74 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -337,7 +337,7 @@ class Upload(object): if self.pkg.changes.has_key('fingerprint'): 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): + if fpr and self.check_if_upload_is_sponsored("%s@debian.org" % fpr.uid.uid, fpr.uid.name): if self.pkg.changes.has_key("sponsoremail"): self.Subst["__MAINTAINER_TO__"] += ", %s" % self.pkg.changes["sponsoremail"] session.close() -- 2.39.5