aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-04 15:24:36 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-04 15:24:36 -0700
commit312312543b9d99af5aeb1df48205e6e0d630eb7d (patch)
treec486c8f79f316d5ce3388d3d1213e6ca686c3c08 /python/fatcat_web
parent86ccea546f93eb74cab7474fe146303d7cb296eb (diff)
downloadfatcat-312312543b9d99af5aeb1df48205e6e0d630eb7d.tar.gz
fatcat-312312543b9d99af5aeb1df48205e6e0d630eb7d.zip
explicit 404 on un-implemented editing pages
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/editing_routes.py6
1 files changed, 3 insertions, 3 deletions
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/<ident>/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