def process_exception(self, request: AxesHttpRequest, exception):  # pylint: disable=inconsistent-return-statements
        """
        Exception handler that processes exceptions raised by the Axes signal handler when request fails with login.

        Only ``axes.exceptions.AxesSignalPermissionDenied`` exception is handled by this middleware.
        """

        if isinstance(exception, AxesSignalPermissionDenied):
            return get_lockout_response(request)