@app.errorhandler(404)
@nocache
def handle_404(error=None):
    if error:
        # There is actually an error
        app.logger.error('Caught 404 accessing page: %s' % request.path)

    context = {
        'title': 'Page Not Found',
        'description': 'The page you are accessing cannot be found',
        'show_footer_ad': True
    }
    return render_template('errors/404.html', **context), 404
dataset/ETHPy150Open shaunduncan/breezeminder/breezeminder/views/errors.py/handle_404/original