mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11: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:
|
except registry.NonExistentRegistryEntry:
|
||||||
pass
|
pass
|
||||||
feed = self.getFeed(url)
|
feed = self.getFeed(url)
|
||||||
info = feed['channel']
|
info = feed.get('channel')
|
||||||
if not info:
|
if not info:
|
||||||
irc.error('I couldn\'t retrieve that RSS feed.')
|
irc.error('I couldn\'t retrieve that RSS feed.')
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user