From 74183573ed3b62adb34e15383a6ce513de22b887 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Sat, 10 Sep 2022 17:19:49 -0400 Subject: Ignore RSS descriptions for special character text --- rss_generator.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rss_generator.py') diff --git a/rss_generator.py b/rss_generator.py index 05a8b39..77bdf98 100644 --- a/rss_generator.py +++ b/rss_generator.py @@ -104,6 +104,9 @@ def get_rss_channel(): path.split(".")[-1] in extensions and path not in siteconfig.RSS_OMIT and not is_hidden_path(path.split('.', 1)[1]) - ): - items.append(RSS_Item(path)) + ): + try: + items.append(RSS_Item(path)) + except UnicodeDecodeError: + pass return items -- cgit v1.2.3