masks-personality-quiz/interface/error_handlers.py

12 lines
330 B
Python
Raw Permalink Normal View History

2021-11-01 13:58:15 +00:00
from flask import render_template, Blueprint, request
2021-11-03 12:37:18 +00:00
from .site_info import site_meta, page_info
2021-11-01 13:58:15 +00:00
error_handler = Blueprint('error_handlers', __name__)
@error_handler.app_errorhandler(404)
def not_found(e):
2021-11-03 12:37:18 +00:00
return render_template(
"404.html",
site_meta = site_meta,
page_info = page_info['404']
)