mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 03:47:35 +02:00
adding exception for wrong backend query
This commit is contained in:
parent
74ed8fa0d4
commit
f4906bb090
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue