diff --git a/podcast_downloader/__main__.py b/podcast_downloader/__main__.py index 33d585b..3a8f12d 100644 --- a/podcast_downloader/__main__.py +++ b/podcast_downloader/__main__.py @@ -227,15 +227,14 @@ def configuration_to_function_rss_to_name( logger.info('Skipping the "%s"', rss_source_name) continue - try: - feed = load_feed(rss_source_link) - if not rss_source_name: - rss_source_name = get_feed_title_from_feed(feed) - - except error: - logger.error(f"Error while checking the link: '{rss_source_link}': {error}") + feed = load_feed(rss_source_link) + if feed.bozo: + logger.error(f"Error while checking the link: '{rss_source_link}': {feed['bozo_exception'].reason.strerror}") continue + if not rss_source_name: + rss_source_name = get_feed_title_from_feed(feed) + logger.info('Checking "%s"', rss_source_name) to_name_function = configuration_to_function_rss_to_name(