diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-02-05 13:12:11 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-02-06 15:25:34 -0500 |
commit | 412104e34c0f85f32a4991bed0393b22e7cdf345 (patch) | |
tree | f7077c00161b4b7985f3d43a2ecac7231cb0f55d /ipaserver/ipaldap.py | |
parent | 31866db9221970ae30d3296cebd2ee92099a7d13 (diff) | |
download | freeipa-412104e34c0f85f32a4991bed0393b22e7cdf345.tar.gz freeipa-412104e34c0f85f32a4991bed0393b22e7cdf345.tar.xz freeipa-412104e34c0f85f32a4991bed0393b22e7cdf345.zip |
Remove more unused files and functions, replace ipaerror with new error classes
Diffstat (limited to 'ipaserver/ipaldap.py')
-rw-r--r-- | ipaserver/ipaldap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipaserver/ipaldap.py b/ipaserver/ipaldap.py index e7177b3e2..a490c3407 100644 --- a/ipaserver/ipaldap.py +++ b/ipaserver/ipaldap.py @@ -320,7 +320,7 @@ class IPAdmin(SimpleLDAPObject): # Too many results returned by search raise e except ldap.LDAPError, e: - raise e + raise errors.DatabaseError, e if not obj: raise errors2.NotFound(msg=notfound(args)) @@ -357,7 +357,7 @@ class IPAdmin(SimpleLDAPObject): ldap.TIMELIMIT_EXCEEDED), e: partial = 1 except ldap.LDAPError, e: - raise e + raise errors.DatabaseError, e if not entries: raise errors2.NotFound(msg=notfound(args)) @@ -514,7 +514,7 @@ class IPAdmin(SimpleLDAPObject): self.set_option(ldap.OPT_SERVER_CONTROLS, sctrl) self.passwd_s(dn, oldpass, newpass) except ldap.LDAPError, e: - raise e + raise errors.DatabaseError, e return True def __wrapmethods(self): |