Ejemplo n.º 1
0
def app_page_not_found(e):
    current_app.logger.error(e)
    if request.accept_mimetypes.accept_json and not request.accept_mimetypes.accept_html:
        response = Restful.page_not_found()
        return response
    return render_template('404.html'), 404
Ejemplo n.º 2
0
def app_page_not_found(e):
    current_app.logger.error(e)
    response = Restful.page_not_found()
    return response
Ejemplo n.º 3
0
def app_page_not_found(e):
    current_app.logger.error(e)
    response = Restful.page_not_found()
    return response