From 312312543b9d99af5aeb1df48205e6e0d630eb7d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 4 Apr 2019 15:24:36 -0700 Subject: explicit 404 on un-implemented editing pages --- python/fatcat_web/editing_routes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/fatcat_web/editing_routes.py') diff --git a/python/fatcat_web/editing_routes.py b/python/fatcat_web/editing_routes.py index a9b3d326..f0b078b1 100644 --- a/python/fatcat_web/editing_routes.py +++ b/python/fatcat_web/editing_routes.py @@ -185,7 +185,7 @@ def fileset_edit(ident): entity = api.get_fileset(ident) except ApiException as ae: abort(ae.status) - return render_template('entity_edit.html') + return render_template('entity_edit.html'), 404 @app.route('/webcapture//edit', methods=['GET']) def webcapture_edit(ident): @@ -193,7 +193,7 @@ def webcapture_edit(ident): entity = api.get_webcapture(ident) except ApiException as ae: abort(ae.status) - return render_template('entity_edit.html') + return render_template('entity_edit.html'), 404 @app.route('/release/create', methods=['GET', 'POST']) @login_required @@ -266,4 +266,4 @@ def work_edit_view(ident): entity = api.get_work(ident) except ApiException as ae: abort(ae.status) - return render_template('entity_edit.html') + return render_template('entity_edit.html'), 404 -- cgit v1.2.3