Added docstring

This commit is contained in:
Joel Collins 2019-09-14 16:22:16 +01:00
parent 11e64cf952
commit 756f18d853

View file

@ -5,6 +5,11 @@ from werkzeug.exceptions import HTTPException
class JSONExceptionHandler(object):
"""
A class to be registered as a Flask error handler,
converts error codes into a JSON response
"""
def __init__(self, app=None):
if app:
self.init_app(app)