cwvreg.py
changeset 7272 771f594c12a2
parent 7206 2723c52a0795
child 7304 66fa1b7ac784
--- a/cwvreg.py	Thu Apr 28 15:30:16 2011 +0200
+++ b/cwvreg.py	Wed Apr 27 16:38:01 2011 +0200
@@ -402,10 +402,8 @@
                      if not isinstance(view, class_deprecated)]
             try:
                 view = self._select_best(views, req, rset=rset, **kwargs)
-                if view.linkable():
+                if view is not None and view.linkable():
                     yield view
-            except NoSelectableObject:
-                continue
             except Exception:
                 self.exception('error while trying to select %s view for %s',
                                vid, rset)