diff options
author | mjfernez <mjf@mjfer.net> | 2022-09-10 17:19:49 -0400 |
---|---|---|
committer | mjfernez <mjf@mjfer.net> | 2022-09-10 17:19:49 -0400 |
commit | 74183573ed3b62adb34e15383a6ce513de22b887 (patch) | |
tree | 52e452be514dd16e4d1a6976dda2938e5b7200af | |
parent | 85857a4bdb4043c23db268474f4fb3d7ff2d9da8 (diff) | |
download | ezcms-74183573ed3b62adb34e15383a6ce513de22b887.tar.gz |
Ignore RSS descriptions for special character text
-rw-r--r-- | rss_generator.py | 7 | ||||
m--------- | templates/site | 0 |
2 files changed, 5 insertions, 2 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 -Subproject 7c78a2b48a8394dfc1b8f3ce25ce78055fe9797 +Subproject 01554934717be33afb2961d8b5bde81b8c0f925 |