From 8569db230083ecacdf1a2323f57b4966caccde6e Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Tue, 16 Jun 2009 19:49:14 +0200 Subject: [PATCH] Revert "Update for wordpress.com blogs" Breaks on several of our blogs. This reverts commit 94988c787f699212e583ef2affad04b029cabd0f. --- aggregator.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/aggregator.py b/aggregator.py index d1f03da..20de7f7 100755 --- a/aggregator.py +++ b/aggregator.py @@ -72,13 +72,11 @@ class Aggregator: # much shorter. Other blog software store what we want in the summary # attribute. So let's just try one after another until we hit something. try: - # Fix for broken wordpress.com blogs - if entry.content[0].has_key('base'): - txt = entry.content[0].value - else: - txt = entry.summary + txt = entry.content[0].value except: txt = '' + if txt == '' and entry.has_key('summary'): + txt = entry.summary if txt == '': # Not a critical error, we just ignore empty posts print "Failed to get text for entry at %s" % entry.link -- 2.39.5