]> err.no Git - dak/commitdiff
dak/acl.py: raise an exception when an unknown selector is used
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 27 Jan 2013 10:52:38 +0000 (11:52 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 27 Jan 2013 11:00:27 +0000 (12:00 +0100)
dak/acl.py

index aa73890ddd33cba7fe91bae4bfd03ef8c6bcfd93..397bf9c11a4e554220fbd073d60723823aa76edf 100644 (file)
@@ -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()