RSS: Don't crash on invalid variable name

It's confusing not to have feedback on IRC when a variable name
is typoed.
This commit is contained in:
Valentin Lorentz 2022-10-28 22:41:43 +02:00
parent 77805ff36e
commit f4ac7f88fe

View File

@ -493,7 +493,7 @@ class RSS(callbacks.Plugin):
template = self.registryValue(key_name, channel, network) template = self.registryValue(key_name, channel, network)
date = entry.get('published_parsed') date = entry.get('published_parsed')
date = utils.str.timestamp(date) date = utils.str.timestamp(date)
s = string.Template(template).substitute( s = string.Template(template).safe_substitute(
entry, entry,
feed_name=feed.name, feed_name=feed.name,
date=date) date=date)