diff options
author | mjfernez <mjf@mjfer.net> | 2022-09-10 17:31:10 -0400 |
---|---|---|
committer | mjfernez <mjf@mjfer.net> | 2022-09-10 17:31:10 -0400 |
commit | 249d015a7dfd2662a5aab80f7fd509c831af1a8e (patch) | |
tree | bbcc6da0f5b638b83c0d1d49b9e419c146736ca5 | |
parent | 3de0585fb7415e1ef8e67b76385cd424592e4d32 (diff) | |
download | ezcms-master.tar.gz |
-rw-r--r-- | rss_generator.py | 7 |
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 |