1
0
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:
kakwa 2015-07-18 12:02:00 +02:00
parent f0a19ba3e9
commit 6ad6f8ce5c

View File

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