"""------------------------------------------------------------*-
  Error handler module for Raspberry Pi
  Tested on: Raspberry Pi 3 B+
  (c) <NAME> 2019
  (c) <NAME> 2018
  version 1.00 - 18/10/2019
 --------------------------------------------------------------
 *
 *
 --------------------------------------------------------------"""
from flask import render_template
from app.errors import bp
# from app import app, dp

@bp.app_errorhandler(404)
def not_found_error(error):
    return render_template('errors/404.html'), 404

@bp.app_errorhandler(500)
def internal_error(error):
    # db.session.rollback()
    return render_template('errors/500.html'), 500
"""------------------------------------------------------------*-
  Error handler module for Raspberry Pi
  Tested on: Raspberry Pi 3 B+
  (c) <NAME> 2019
  (c) <NAME> 2018
  version 1.00 - 18/10/2019
 --------------------------------------------------------------
 *
 *
 --------------------------------------------------------------"""
from flask import render_template
from app.errors import bp
# from app import app, dp

@bp.app_errorhandler(404)
def not_found_error(error):
    return render_template('errors/404.html'), 404

@bp.app_errorhandler(500)
def internal_error(error):
    # db.session.rollback()
    return render_template('errors/500.html'), 500
------------------------------------------------------------*-   Error handler module for Raspberry Pi   Tested on: Raspberry Pi 3 B+   (c) <NAME> 2019   (c) <NAME> 2018   version 1.00 - 18/10/2019  --------------------------------------------------------------  *  *  -------------------------------------------------------------- # from app import app, dp # db.session.rollback()