def METHOD_NAME(method):
    def retry(self, *args, **kwargs):
        retries = 0
        while 3 > retries:
            try:
                return method(self, *args, **kwargs)
            except HTTPError as error:
                if error.response.status_code != 423:
                    raise
                retries += 1
                logger.debug("423 returned. Retrying in 30 seconds")
                time.sleep(30)
        logger.debug("Retries limit exceeded. Ignoring query")
        return []
    return retry