From: Ansgar Burchardt Date: Sun, 1 Jul 2012 23:09:20 +0000 (+0200) Subject: utils.py (mail_addresses_for_upload): only try to use address from key if there is one X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2ab14e9a096e43b846820363557183dab77a87b3;p=dak.git utils.py (mail_addresses_for_upload): only try to use address from key if there is one --- 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 ]