--- a/server/sources/ldapuser.py Thu Feb 14 15:39:23 2013 +0100
+++ b/server/sources/ldapuser.py Thu Feb 14 15:38:25 2013 +0100
@@ -238,13 +238,13 @@
# handle restriction
try:
eidfilters_, ldapfilter = generator.generate(rqlst, mainvar)
- except GotDN, ex:
+ except GotDN as ex:
assert ex.dn, 'no dn!'
try:
res = [self._cache[ex.dn]]
except KeyError:
res = self._search(session, ex.dn, BASE)
- except UnknownEid, ex:
+ except UnknownEid as ex:
# raised when we are looking for the dn of an eid which is not
# coming from this source
res = []