From 0179beebeadb9823401c66cfc24e431c64df4598 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 8 Jun 2022 18:59:18 -0600 Subject: [PATCH] Updating rss feed bozo error to use more common wording.g --- wrolpi/downloader.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wrolpi/downloader.py b/wrolpi/downloader.py index f36b728e..85a5fa74 100644 --- a/wrolpi/downloader.py +++ b/wrolpi/downloader.py @@ -772,6 +772,9 @@ class RSSDownloader(Downloader, ABC): pretty_name = 'RSS' listable = False + def __repr__(self): + return '' + @classmethod def valid_url(cls, url: str) -> Tuple[bool, Optional[dict]]: """Attempts to parse an RSS Feed. If it succeeds, it returns a FeedParserDict as a dictionary.""" @@ -815,7 +818,8 @@ class RSSDownloader(Downloader, ABC): """ Feedparser can report some errors, some we can ignore. """ - if 'CharacterEncodingOverride' in str(feed['bozo_exception']): + if 'document declared as' in str(feed['bozo_exception']): + # Feed's encoding does not match what is declared, this is fine. return True return False