diff --git a/docs/source/pages/endpoints.rst b/docs/source/pages/endpoints.rst index 0b1f9a2..eb97517 100644 --- a/docs/source/pages/endpoints.rst +++ b/docs/source/pages/endpoints.rst @@ -278,13 +278,13 @@ You can customize how Sanic JWT handles responses on an exception by subclassing from sanic_jwt import Responses class MyResponses(Responses): - @staticmethod - def exception_response(request, exception): - exception_message = str(exception) - return json({ - 'error': True, - 'message': f'You encountered an exception: {exception_message}' - }, status=exception.status_code) + @staticmethod + def exception_response(request, exception): + exception_message = str(exception) + return json({ + 'error': True, + 'message': f'You encountered an exception: {exception_message}' + }, status=exception.status_code) Initialize(app, response_class=MyResponses) diff --git a/docs/source/pages/protected.rst b/docs/source/pages/protected.rst index c68f76f..4d58919 100644 --- a/docs/source/pages/protected.rst +++ b/docs/source/pages/protected.rst @@ -65,8 +65,8 @@ Using the standard `Sanic methodology