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
1 changed files with 1 additions and 1 deletions

View File

@ -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)