[Checkins] SVN: zopetoolkit/doc/scripts/update-releaseinfo.py Try to fix the releaseinfo script

Hanno Schlichting hannosch at hannosch.eu
Wed Jun 29 05:06:00 EDT 2011


Log message for revision 122032:
  Try to fix the releaseinfo script
  

Changed:
  U   zopetoolkit/doc/scripts/update-releaseinfo.py

-=-
Modified: zopetoolkit/doc/scripts/update-releaseinfo.py
===================================================================
--- zopetoolkit/doc/scripts/update-releaseinfo.py	2011-06-29 08:57:52 UTC (rev 122031)
+++ zopetoolkit/doc/scripts/update-releaseinfo.py	2011-06-29 09:06:00 UTC (rev 122032)
@@ -54,6 +54,9 @@
         doap_xml = urllib2.urlopen(
             'http://pypi.python.org/pypi?:action=doap&name=%s&version=%s' %
             (package, version)).read()
+        if not doap_xml:
+            # someone removed a released package from PyPi - ARGHHH!
+            return
         doap_xml = StringIO.StringIO(doap_xml.replace('\f', ''))
         doap = xml.etree.ElementTree.ElementTree()
         doap.parse(doap_xml)



More information about the checkins mailing list