From f4ac7f88fed02985440f97c02913dc6fa61fe193 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 28 Oct 2022 22:41:43 +0200 Subject: [PATCH] RSS: Don't crash on invalid variable name It's confusing not to have feedback on IRC when a variable name is typoed. --- plugins/RSS/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index 8c63c0350..d143ce6fe 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -493,7 +493,7 @@ class RSS(callbacks.Plugin): template = self.registryValue(key_name, channel, network) date = entry.get('published_parsed') date = utils.str.timestamp(date) - s = string.Template(template).substitute( + s = string.Template(template).safe_substitute( entry, feed_name=feed.name, date=date)