X-Git-Url: https://git.ucc.asn.au/?p=planet-ucc.git;a=blobdiff_plain;f=update-planet;h=7f31e5279f859208f4137323de8e941a82f7a7d9;hp=0de1c287e35c83f5495dd28ba3ae2e1c74586fa4;hb=2a563de3bcc327fa440671db368a261d70e9114b;hpb=2b074c0d428d190e8ddc08b01597dbe397a5254c diff --git a/update-planet b/update-planet index 0de1c28..7f31e52 100755 --- a/update-planet +++ b/update-planet @@ -47,10 +47,6 @@ for feed in feeds: else: pass -if not tainted: - sys.stdout.write('PlanetUCC: no objects have changed in the cache, not updating\n') - sys.exit(1) - # step 3: sift the feeds xmlwriter = XMLWriter.XMLWriter(blogs) @@ -59,6 +55,7 @@ try: codecs.open('planet.html', 'wb', 'utf-8').write(xmlwriter.write(XHTMLWriter.XHTMLWriter)) except: sys.stderr.write('DEBUG: update-planet: could not write planet.html, aborting\n') + raise try: codecs.open('rss2.xml', 'wb', 'utf-8').write(xmlwriter.write(RSS2Writer.RSS2Writer)) @@ -79,4 +76,9 @@ try: codecs.open('opml.xml', 'wb', 'utf-8').write(xmlwriter.write(OPMLWriter.OPMLWriter)) except: sys.stderr.write('DEBUG: update-planet: could not write opml.xml, aborting\n') - raise + + +if not tainted: + sys.stdout.write('PlanetUCC: no objects have changed in the cache, not updating\n') + sys.exit(1) +