Fixed bug to do with Nonetypes
authordavyd <davyd>
Mon, 9 Feb 2004 13:31:55 +0000 (13:31 +0000)
committerdavyd <davyd>
Mon, 9 Feb 2004 13:31:55 +0000 (13:31 +0000)
XMLParse2.py

index 689fecb..e338580 100644 (file)
@@ -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)

UCC git Repository :: git.ucc.asn.au