projects
/
hamn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af6da2f
)
Handle exceptions during parsing. Showed up when the domain of one of our
author
Magnus Hagander
<magnus@hagander.net>
Mon, 27 Oct 2008 18:40:35 +0000
(18:40 +0000)
committer
Magnus Hagander
<magnus@hagander.net>
Mon, 27 Oct 2008 18:40:35 +0000
(18:40 +0000)
aggregated blogs dropped off DNS... Oops.
aggregator.py
patch
|
blob
|
blame
|
history
diff --git
a/aggregator.py
b/aggregator.py
index ddfa1553a879d5c00af47868ac68ed254549f132..b73c467b72de1621762e290340691002602f4c81 100755
(executable)
--- a/
aggregator.py
+++ b/
aggregator.py
@@
-23,7
+23,11
@@
class Aggregator:
feeds = self.db.cursor()
feeds.execute('SELECT id,feedurl,name,lastget FROM planet.feeds')
for feed in feeds.fetchall():
- self.ParseFeed(feed)
+ try:
+ self.ParseFeed(feed)
+ except Exception, e:
+ print "Exception when parsing feed '%s': %s" % (feed[1], e)
+
self.db.commit()
def ParseFeed(self, feedinfo):