code: def process_exception(self, request: AxesHttpRequest, exception):  # pylint: disable=inconsistent-return-statements
          
  
          if isinstance(exception, AxesSignalPermissionDenied):
              return get_lockout_response(request)
docs: 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.