mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-03 16:14:10 +01:00
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:
parent
77805ff36e
commit
f4ac7f88fe
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user