From 13bce463950da66febe7acbd3fef70fd62e12535 Mon Sep 17 00:00:00 2001 From: Nelson Elhage Date: Sun, 17 Jan 2010 22:45:33 -0500 Subject: [PATCH] scan-feeds: Warn if we can't find someone's entries. --- scan-feeds.py | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.39.5