masks-personality-quiz/interface/error_handlers.py

7 lines
203 B
Python
Raw Normal View History

2021-11-01 13:58:15 +00:00
from flask import render_template, Blueprint, request
error_handler = Blueprint('error_handlers', __name__)
@error_handler.app_errorhandler(404)
def not_found(e):
return render_template("404.html")