From a396b3f63909176bc36af01f525669e8201ad36d Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Fri, 6 Jul 2012 15:13:41 -0600 Subject: [PATCH] use discard instead of remove Uploads that do not include source would trigger an exception when remove is used. discard does not raise an exception when the element does not exist. Signed-off-by: Ansgar Burchardt --- daklib/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/checks.py b/daklib/checks.py index adee6241..209a0945 100644 --- a/daklib/checks.py +++ b/daklib/checks.py @@ -387,7 +387,7 @@ class ACLCheck(Check): raise Reject('Unknown source_acl access level {0} for fingerprint {1}'.format(source_acl.access_level, fingerprint.fingerprint)) bin_architectures = set(upload.changes.architectures) - bin_architectures.remove('source') + bin_architectures.discard('source') binary_acl = fingerprint.binary_acl if binary_acl is None: if len(bin_architectures) > 0: -- 2.39.5