asciimoo/potion — pull request #6 by misnyo (2012-10-24 18:21:43+00:00)
Title: [fix]sometimes parsed feed only have a link property, not links

ex: http://vsza.hu/hacksense/status.rss dies with error

Traceback (most recent call last):
File "potion/sources/feed.py", line 146, in
counter = sum(imap(parseFeed, Source.query.filter(Source.source_type=='feed').all()))
File "potion/sources/feed.py", line 106, in parseFeed
original_url = unicode(item['links'][0]['href'])
File "potion3/local/lib/python2.7/site-packages/feedparser-5.1.2-py2.7.egg/feedparser.py", line 383, in __getitem__
return dict.__getitem__(self, key)
KeyError: 'links'