Commit a418e812 authored by Kiste's avatar Kiste
Browse files

Errors everywhere

parent 78bdb937
......@@ -36,7 +36,11 @@ def do_feed(url, rules_path, verbose):
feed = feedparser.parse(url)
fg = FeedGenerator()
fg.id(feed['feed']['id'])
try:
fg.id(feed['feed']['id'])
except KeyError:
print('Error in feed')
exit(1)
fg.title(feed['feed']['title'])
fg.link(feed['feed']['links'])
try:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment