Commits

Andreas Kloeckner committed 10898fa

Catch AccessDenied errors originating in item.do_show.

Comments (0)

Files changed (1)

MoinMoin/apps/frontend/views.py

                         item_name=item_name)
     try:
         item = Item.create(item_name, rev_id=rev)
+        result = item.do_show(rev)
     except AccessDenied:
         abort(403)
-    return item.do_show(rev)
+    return result
 
 
 @frontend.route('/<itemname:item_name>/')  # note: unwanted trailing slash