mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-15 14:08:31 +02:00
adding exception for user already existing in backend
This commit is contained in:
parent
f0a19ba3e9
commit
6ad6f8ce5c
1 changed files with 10 additions and 0 deletions
|
@ -196,6 +196,16 @@ class UserDoesntExist(Exception):
|
||||||
" in backend '" + backend + "'"
|
" 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):
|
class GroupDoesntExist(Exception):
|
||||||
def __init__(self, group, backend):
|
def __init__(self, group, backend):
|
||||||
self.group = group
|
self.group = group
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue