web/views/urlpublishing.py
changeset 7272 771f594c12a2
parent 6961 686c59dfc401
child 7794 aed065b97f12
--- a/web/views/urlpublishing.py	Thu Apr 28 15:30:16 2011 +0200
+++ b/web/views/urlpublishing.py	Wed Apr 27 16:38:01 2011 +0200
@@ -260,9 +260,8 @@
             else:
                 try:
                     action = actionsreg._select_best(actions, req, rset=rset)
+                    if action is not None:
+                        raise Redirect(action.url())
                 except RegistryException:
-                    continue
-                else:
-                    # XXX avoid redirect
-                    raise Redirect(action.url())
+                    pass # continue searching
         raise PathDontMatch()