Re:Flask 1.0 Released
by danielhochman on Thursday April 26, 2018 @06:26PM
(#16936504)
It is possible to register error handlers for exceptions in Flask. See http://flask.pocoo.org/docs/1.0/patterns/apierrors/.
[ Parent
| on HN ]
Re:Flask 1.0 Released
by otterlicious on Thursday April 26, 2018 @07:12PM
(#16936832)
There are also exceptions corresponding to HTTP errors, e.g.:
raise werkzeug.exceptions.NotFound
instead of abort(404)