app.register_error_handler(Exception, handle_error_json())
改正后
app.register_error_handler(Exception, handle_error_json)
app.register_error_handler(Exception, handle_error_json())
改正后
app.register_error_handler(Exception, handle_error_json)