Example #1
0
 def app_error_405(error):
     current_app.logger.warn(
         "Error: 405\n{}".format(traceback.format_exc()))
     return make_json_response(MethodNotAllowed())
Example #2
0
 def app_error_uncaught(error):
     current_app.logger.warn(
         "Error: Uncaught\n{}".format(traceback.format_exc()))
     return make_json_response(UncaughtException(repr(error)))
Example #3
0
def comment_api_err(error):
    print error
    return make_json_response(error)
Example #4
0
 def app_error_404(error):
     current_app.logger.warn(
         "Error: 404\n{}".format(traceback.format_exc()))
     return make_json_response(NotFound())
Example #5
0
def blueprint_api_err(err):
    return make_json_response(err)
Example #6
0
def blueprint_api_err(err):
    return make_json_response(err)
Example #7
0
 def app_error_405(error):
     current_app.logger.warn(
         "Error: 405\n{}".format(traceback.format_exc()))
     return make_json_response(MethodNotAllowed())
Example #8
0
 def app_error_uncaught(error):
     current_app.logger.warn(
         "Error: Uncaught\n{}".format(traceback.format_exc()))
     return make_json_response(UncaughtException(repr(error)))
Example #9
0
 def app_error_404(error):
     current_app.logger.warn(
         "Error: 404\n{}".format(traceback.format_exc()))
     return make_json_response(NotFound())
Example #10
0
 def app_error_400(error):
     return make_json_response(BadRequest(repr(error)))
Example #11
0
 def app_error_405(error):
     return make_json_response(MethodNotAllowed(repr(error)))
Example #12
0
 def app_error_404(error):
     return make_json_response(NotFound(repr(error)))
Example #13
0
def comment_api_err(error):
    print error
    return make_json_response(error)