server/sources/ldapuser.py
changeset 8695 358d8bed9626
parent 8674 001c1592060a
child 8707 28cbd267e96b
--- 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 = []