mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-16 15:39:21 +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)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user