diff -r 42a0b7398d31 -r e257b4476454 req.py --- a/req.py Thu Sep 29 14:05:42 2011 +0200 +++ b/req.py Thu Sep 29 14:05:45 2011 +0200 @@ -29,7 +29,7 @@ from logilab.common.deprecation import deprecated from logilab.common.date import ustrftime, strptime, todate, todatetime -from cubicweb import Unauthorized, RegistryException, typed_eid +from cubicweb import Unauthorized, NoSelectableObject, typed_eid from cubicweb.rset import ResultSet ONESECOND = timedelta(0, 1, 0) @@ -336,7 +336,7 @@ initargs.update(kwargs) try: view = self.vreg[__registry].select(__vid, self, rset=rset, **initargs) - except RegistryException: + except NoSelectableObject: if __fallback_oid is None: raise view = self.vreg[__registry].select(__fallback_oid, self,