mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Use get to avoid a KeyError.
This commit is contained in:
parent
3f94bf6dae
commit
25ae2a52cf
@ -361,7 +361,7 @@ class RSS(callbacks.Plugin):
|
||||
except registry.NonExistentRegistryEntry:
|
||||
pass
|
||||
feed = self.getFeed(url)
|
||||
info = feed['channel']
|
||||
info = feed.get('channel')
|
||||
if not info:
|
||||
irc.error('I couldn\'t retrieve that RSS feed.')
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user