schema.py
changeset 8695 358d8bed9626
parent 8540 fee98af8bb33
child 8892 80783605d270
--- a/schema.py	Thu Feb 14 15:39:23 2013 +0100
+++ b/schema.py	Thu Feb 14 15:38:25 2013 +0100
@@ -784,14 +784,14 @@
                 if self.eid is not None:
                     _cw.local_perm_cache[key] = False
                 return False
-            except TypeResolverException, ex:
+            except TypeResolverException as ex:
                 # some expression may not be resolvable with current kwargs
                 # (type conflict)
                 self.warning('%s: %s', rql, str(ex))
                 if self.eid is not None:
                     _cw.local_perm_cache[key] = False
                 return False
-            except Unauthorized, ex:
+            except Unauthorized as ex:
                 self.debug('unauthorized %s: %s', rql, str(ex))
                 if self.eid is not None:
                     _cw.local_perm_cache[key] = False