From 756f18d853f713dcf8d40d6103203e07b44cd34a Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Sat, 14 Sep 2019 16:22:16 +0100 Subject: [PATCH] Added docstring --- openflexure_microscope/api/exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openflexure_microscope/api/exceptions.py b/openflexure_microscope/api/exceptions.py index d3a8f048..ccda5087 100644 --- a/openflexure_microscope/api/exceptions.py +++ b/openflexure_microscope/api/exceptions.py @@ -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)