From 0bcc551a3fcaaee60ed5feb42c70ad80ad4958c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sat, 21 Jan 2023 14:17:12 +0100 Subject: [PATCH] Use or instead of if else --- discord_rss_bot/custom_message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord_rss_bot/custom_message.py b/discord_rss_bot/custom_message.py index bc4134f..d496d90 100644 --- a/discord_rss_bot/custom_message.py +++ b/discord_rss_bot/custom_message.py @@ -113,7 +113,7 @@ def replace_tags(feed: Feed, entry: Entry) -> str: {"{{entry_read}}": str(entry.read)}, {"{{entry_read_modified}}": entry.read_modified}, {"{{entry_summary}}": summary}, - {"{{entry_summary_raw}}": entry.summary if entry.summary else ""}, + {"{{entry_summary_raw}}": entry.summary or ""}, {"{{entry_title}}": entry.title}, {"{{entry_updated}}": entry.updated}, {"{{image_1}}": first_image},