From: Nelson Elhage Date: Mon, 18 Jan 2010 03:45:33 +0000 (-0500) Subject: scan-feeds: Warn if we can't find someone's entries. X-Git-Url: https://projects.mako.cc/source/iron-blogger/commitdiff_plain/13bce463950da66febe7acbd3fef70fd62e12535?hp=6667cbf7f4bcf5c3f548ea3cb40ee04697a83304 scan-feeds: Warn if we can't find someone's entries. --- diff --git a/scan-feeds.py b/scan-feeds.py index bc82608..9801762 100755 --- a/scan-feeds.py +++ b/scan-feeds.py @@ -2,6 +2,7 @@ import yaml import feedparser import datetime +import sys from dateutil.parser import parse import dateutil.tz as tz @@ -25,6 +26,8 @@ def get_link(post): def parse_feeds(weeks, uri): feed = feedparser.parse(uri) + if not feed.entries: + print >>sys.stderr, "WARN: no entries for ", uri for post in feed.entries: date = parse_published(get_date(post))