selectors.py
branchtls-sprint
changeset 1132 96752791c2b6
parent 1037 1f3fae8d82b2
child 1138 22f634977c95
--- a/selectors.py	Mon Mar 23 17:38:30 2009 +0100
+++ b/selectors.py	Mon Mar 23 17:55:59 2009 +0100
@@ -53,7 +53,7 @@
 
 from cubicweb import Unauthorized, NoSelectableObject, NotAnEntity, role
 from cubicweb.vregistry import (NoSelectableObject, Selector,
-                                chainall, chainfirst, objectify_selector)
+                                chainall, objectify_selector)
 from cubicweb.cwconfig import CubicWebConfiguration
 from cubicweb.schema import split_expression
 
@@ -619,7 +619,7 @@
                     return int(self.target_etype in rschema.objects(eschema))
                 else:
                     return int(self.target_etype in rschema.subjects(eschema))
-            except KeyError, ex:
+            except KeyError:
                 return 0
         return 1