From 2ab14e9a096e43b846820363557183dab77a87b3 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 2 Jul 2012 01:09:20 +0200 Subject: [PATCH] utils.py (mail_addresses_for_upload): only try to use address from key if there is one --- daklib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/utils.py b/daklib/utils.py index 242400a9..0d2f1fc6 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -1581,7 +1581,7 @@ def mail_addresses_for_upload(maintainer, changed_by, fingerprint): addresses.append(changed_by) fpr_addresses = gpg_get_key_addresses(fingerprint) - if fix_maintainer(changed_by)[3] not in fpr_addresses and fix_maintainer(maintainer)[3] not in fpr_addresses: + if len(fpr_addresses) > 0 and fix_maintainer(changed_by)[3] not in fpr_addresses and fix_maintainer(maintainer)[3] not in fpr_addresses: addresses.append(fpr_addresses[0]) encoded_addresses = [ fix_maintainer(e)[1] for e in addresses ] -- 2.39.5