From b431b599aea52092c1db6360d22ef855d1d9be1b Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Mon, 5 Oct 2020 08:43:06 -0700 Subject: [PATCH] [RSS] Catch feeds that have no content --- rss/rss.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rss/rss.py b/rss/rss.py index 7aa5055..1e65362 100644 --- a/rss/rss.py +++ b/rss/rss.py @@ -879,6 +879,9 @@ class RSS(commands.Cog): to_fill = QuietTemplate(template) message = to_fill.quiet_safe_substitute(name=bold(name), **feedparser_plus_obj) + if len(message.strip(" ")) == 0: + message = None + if not message: log.debug(f"{name} feed in {channel.name} ({channel.id}) has no valid tags, not posting anything.") return