aboutsummaryrefslogtreecommitdiffstats
path: root/rss_generator.py
diff options
context:
space:
mode:
authormjfernez <mjf@mjfer.net>2022-09-10 17:31:10 -0400
committermjfernez <mjf@mjfer.net>2022-09-10 17:31:10 -0400
commit249d015a7dfd2662a5aab80f7fd509c831af1a8e (patch)
treebbcc6da0f5b638b83c0d1d49b9e419c146736ca5 /rss_generator.py
parent3de0585fb7415e1ef8e67b76385cd424592e4d32 (diff)
downloadezcms-master.tar.gz
Ignore RSS descriptions for special character filesHEADmaster
Diffstat (limited to 'rss_generator.py')
-rw-r--r--rss_generator.py7
1 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