This binds json error handlers to a Flask so that any error generated is handled as a json response
To install:
$ pip install git+https://github.com/eric-s-s/bind_json_error_handlers
or:
$ git clone https://github.com/eric-s-s/bind_json_error_handlers
$ cd sentences
$ python setup.py install # or pip install .
to use:
from bind_json_error_handlers import bind_json_error_handlers
app = Flask(__name__)
bind_json_error_handler(app)
the end.