def METHOD_NAME(self, policyStr):
    try:
        # mom.setPolicy will raise an exception on failure.
        self._mom.METHOD_NAME(policyStr)
    except (ThrottledClient.Inactive, AttributeError, socket.error) as e:
        self.log.warning(
            "MOM not available, Policy could not be set. Error: %s",
            str(e)
        )