(queue)
Fetch data for the URLs supplied as the queue iterable
Fetch data for the URLs supplied as the queue iterable
Fetch data for the URLs supplied as the queue iterable
def update_podcasts(queue):
    """Fetch data for the URLs supplied as the queue iterable"""

    for n, podcast_url in enumerate(queue, 1):
        logger.info("Update %d - %s", n, podcast_url)
        if not podcast_url:
            logger.warning("Podcast URL empty, skipping")
            continue

        try:
            updater = PodcastUpdater(podcast_url)
            yield updater.update_podcast()

        except NoPodcastCreated as npc:
            logger.info("No podcast created: %s", npc)

        except NoEpisodesException as nee:
            logger.info(f"No episodes found when parsing {podcast_url}")
            continue

        except GeneratorExit:
            pass

        except:
            logger.exception('Error while updating podcast "%s"', podcast_url)
            raise
def update_podcasts ( queue ) : for n , podcast_url in enumerate ( queue , 1 ) : logger . info ( "Update %d - %s" , n , podcast_url ) if not podcast_url : logger . warning ( "Podcast URL empty, skipping" ) continue try : updater = PodcastUpdater ( podcast_url ) yield updater . update_podcast ( ) except NoPodcastCreated as npc : logger . info ( "No podcast created: %s" , npc ) except NoEpisodesException as nee : logger . info ( f"No episodes found when parsing {podcast_url}" ) continue except GeneratorExit : pass except : logger . exception ( 'Error while updating podcast "%s"' , podcast_url ) raise