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 +++++-- templates/site | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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 diff --git a/templates/site b/templates/site index 7c78a2b..0155493 160000 --- a/templates/site +++ b/templates/site @@ -1 +1 @@ -Subproject commit 7c78a2b48a8394dfc1b8f3ce25ce78055fe9797e +Subproject commit 01554934717be33afb2961d8b5bde81b8c0f9258 -- cgit v1.2.3