From: davyd Date: Mon, 9 Feb 2004 13:31:55 +0000 (+0000) Subject: Fixed bug to do with Nonetypes X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=96388a504cd19fb9bdc93016d7c089ac59ec5086;p=planet-ucc.git Fixed bug to do with Nonetypes --- 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)