From: Ansgar Burchardt Date: Sun, 27 Jan 2013 10:52:38 +0000 (+0100) Subject: dak/acl.py: raise an exception when an unknown selector is used X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=878714a85b639d2a3ca858d72f7cefa228900478;p=dak.git dak/acl.py: raise an exception when an unknown selector is used --- diff --git a/dak/acl.py b/dak/acl.py index aa73890d..397bf9c1 100644 --- a/dak/acl.py +++ b/dak/acl.py @@ -65,6 +65,8 @@ def get_fingerprint(entry, session): q = q.filter(Fingerprint.fingerprint == value) elif field == 'keyring': q = q.join(Fingerprint.keyring).filter(Keyring.keyring_name == value) + else: + raise Exception('Unknown selector "{0}".'.format(field)) return q.all()