From c0a6f8e8044bc9fba9ec8dca7b34c106fb53e83c Mon Sep 17 00:00:00 2001 From: James Turk Date: Sat, 22 May 2021 22:57:58 -0400 Subject: [PATCH] 404 --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 3fdc169..6078e23 100644 --- a/app.py +++ b/app.py @@ -1,5 +1,5 @@ import csv -from flask import Flask, render_template +from flask import Flask, render_template, abort app = Flask(__name__) @@ -35,4 +35,4 @@ def staff_detail(id_): if employee := employees().get(id_): return render_template("staff_detail.html", employee=employee) else: - raise 404 + abort(404)