mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-25 18:54:29 +01:00
adding exception for user already existing in backend
This commit is contained in:
parent
f0a19ba3e9
commit
6ad6f8ce5c
@ -196,6 +196,16 @@ class UserDoesntExist(Exception):
|
||||
" in backend '" + backend + "'"
|
||||
|
||||
|
||||
class UserAlreadyExists(Exception):
|
||||
def __init__(self, user, backend):
|
||||
self.user = user
|
||||
self.bakend = backend
|
||||
self.log = \
|
||||
"user '" + user + "'" \
|
||||
" already exists" \
|
||||
" in backend '" + backend + "'"
|
||||
|
||||
|
||||
class GroupDoesntExist(Exception):
|
||||
def __init__(self, group, backend):
|
||||
self.group = group
|
||||
|
Loading…
Reference in New Issue
Block a user