Commit 756f18d8 authored by Joel Collins's avatar Joel Collins
Browse files

Added docstring

parent 11e64cf9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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)