From 96388a504cd19fb9bdc93016d7c089ac59ec5086 Mon Sep 17 00:00:00 2001 From: davyd Date: Mon, 9 Feb 2004 13:31:55 +0000 Subject: [PATCH] Fixed bug to do with Nonetypes --- XMLParse2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMLParse2.py b/XMLParse2.py index 689fecb..e338580 100644 --- a/XMLParse2.py +++ b/XMLParse2.py @@ -38,7 +38,7 @@ class XMLParse: def parse(self): "Return a single Blog object" item = Blog() - if self.blogObject: + if self.blogObject and self.blogObject.cache: sys.stdout.write('Downloading feed %s...' % self.feedURL) try: data = feedparser.parse(self.feedURL, self.blogObject.cache.etag, self.blogObject.cache.date) -- 2.20.1