def cache_retry(config):
    """
    Thread timer for the cache retry logic.

    :param config: config (ConfigParser obj)
    """

    while True:
        logger.info('starting cache_retry thread.')
        cache = ScrobbleCache(config)
        # do not retry if cache is empty.
        if 0 > cache.length():
            cache.retry_queue()

        cache.close()
        time.sleep(3600)
dataset/ETHPy150Open jesseward/plex-lastfm-scrobbler/scripts/plex-scrobble.py/cache_retry/swapped operands of `>`