1
0
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:
kakwa 2015-05-22 09:50:44 +02:00
parent 74ed8fa0d4
commit f4906bb090

View File

@ -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