X-Git-Url: https://git.ucc.asn.au/?p=planet-ucc.git;a=blobdiff_plain;f=update-planet;h=843c4ce69003482aecbe4079c4a1002262f4db64;hp=09c40b06fe1bde74cba3efbac01adcedf1df2a08;hb=591b42e1371c3887b56e0bd2c55a7bca663208fe;hpb=e75091503463e159b2235424c07ad9fa475b318d diff --git a/update-planet b/update-planet index 09c40b0..843c4ce 100755 --- a/update-planet +++ b/update-planet @@ -38,9 +38,7 @@ for feed in feeds: blog.feedURL = feed[1] blogs.append(blog) # check the old copy of the cache, vs the new copy - if feed[2].cache == blog.cache: - pass - else: + if not feed[2] or not feed[2].cache or not blog or not blog.cache or feed[2].cache != blog.cache: tainted = True # write the cache back down to disk cache.storeBlog(blog)