From d89042d7459b39ee9bbe69ada471be5aec50af9a Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Sat, 20 Sep 2003 13:28:48 +0000 Subject: [PATCH] Don't immediately retry broken feeds. --- NEWS | 5 +++++ rawdoglib/rawdog.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index cfc1135..fc80ddc 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +- rawdog 1.3 + +Reverted the "retry immediately" behaviour from 1.2, since it causes denied or +broken feeds to get checked every time rawdog is run. + - rawdog 1.2 Updated feedparser to 2.5.2, which fixes a bug that was making rawdog diff --git a/rawdoglib/rawdog.py b/rawdoglib/rawdog.py index 9606036..32818a6 100644 --- a/rawdoglib/rawdog.py +++ b/rawdoglib/rawdog.py @@ -91,6 +91,8 @@ class Feed: error = "The feed returned an error.\n" error += "If this condition persists, you should remove it from your config file." + self.last_update = now + if error is not None: print "Feed: " + self.url if status is not None: @@ -100,8 +102,6 @@ class Feed: if not non_fatal: return 0 - self.last_update = now - self.etag = p.get("etag") self.modified = p.get("modified") # In the event that the feed hasn't changed, then both channel -- 2.35.1