mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 01:14:21 +01:00
adding exception for wrong backend query
This commit is contained in:
parent
74ed8fa0d4
commit
f4906bb090
@ -33,6 +33,11 @@ class MissingBackend(Exception):
|
||||
self.backend = backend
|
||||
self.log = "backend <%(backend)s> does not exist in main config file" % { 'backend' : backend}
|
||||
|
||||
class WrongBackend(Exception):
|
||||
def __init__(self, backend):
|
||||
self.backend = backend
|
||||
self.log = "backend <%(backend)s> does not exist" % { 'backend' : backend}
|
||||
|
||||
class DumplicateRoleContent(Exception):
|
||||
def __init__(self, role1, role2):
|
||||
self.role1 = role1
|
||||
|
Loading…
Reference in New Issue
Block a user