def error(exception=None):
    return Response(render_template('error.html', message=exception.get('exception', 'Please contact your System Administrator.')))
def error(exception=None):
    return Response(render_template('error.html', message=exception.get('exception', 'Please contact your System Administrator.')))