From 878714a85b639d2a3ca858d72f7cefa228900478 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 27 Jan 2013 11:52:38 +0100 Subject: [PATCH] dak/acl.py: raise an exception when an unknown selector is used --- dak/acl.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.39.5